M
media.opslag
Hi,
How can i get this to work in access / jet sql ??? Someone??
SELECT
tbl1.[field],
tbl2.[otherfield]
FROM [Table1] tbl1
left outer join [Table2] tbl2 on
tbl2.[id1] = tbl1.[id1] and
tbl2.[id2] = tbl1.[id2] and
tbl2.[somefield] =
(
SELECT MAX([somefield])
FROM [Table2] tbl2_temp
WHERE tbl2_temp.[id1] = tbl1.[id1] and
tbl2_temp.[id2] = tbl1.[id2]
)
It seems access doesn't have the possibility to put subqueries in from
clauses - left outer joins...
Thanx!
Gene.
How can i get this to work in access / jet sql ??? Someone??
SELECT
tbl1.[field],
tbl2.[otherfield]
FROM [Table1] tbl1
left outer join [Table2] tbl2 on
tbl2.[id1] = tbl1.[id1] and
tbl2.[id2] = tbl1.[id2] and
tbl2.[somefield] =
(
SELECT MAX([somefield])
FROM [Table2] tbl2_temp
WHERE tbl2_temp.[id1] = tbl1.[id1] and
tbl2_temp.[id2] = tbl1.[id2]
)
It seems access doesn't have the possibility to put subqueries in from
clauses - left outer joins...
Thanx!
Gene.