P
Patrick Ryan
Can I have multiple outer (left) joins, joining 3 or more tables, in an
Access SQL statement? If so, what is the syntax? A left join between 2
tables is not a problem.
I have a table with foreign keys to 4 other tables as well as its own data
fields. The fields that hold the foreign keys may have valid long integer
values (keys) or nulls. Therefore, I can't use inner joins. I want the SQL
statement to return the data fields from the "join" table as well as the
related values from the 4 tables via the foreign keys (if they exist).
I can actually do this by making 5 separate SQL statement connected by a
union statement. But I think this would take a big performance hit with a
lot of data. I am currently handling the above problem with lookups on the
application level. I'd prefer not though. Any ideas? Thanks.
Access SQL statement? If so, what is the syntax? A left join between 2
tables is not a problem.
I have a table with foreign keys to 4 other tables as well as its own data
fields. The fields that hold the foreign keys may have valid long integer
values (keys) or nulls. Therefore, I can't use inner joins. I want the SQL
statement to return the data fields from the "join" table as well as the
related values from the 4 tables via the foreign keys (if they exist).
I can actually do this by making 5 separate SQL statement connected by a
union statement. But I think this would take a big performance hit with a
lot of data. I am currently handling the above problem with lookups on the
application level. I'd prefer not though. Any ideas? Thanks.