Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

join a subquery

Status
Not open for further replies.

dragonwell

Programmer
Oct 21, 2002
863
US
How do I do this type of query in Access? I get invalid syntax errors.

Code:
select 
a.column,
b.column2

from Table1 a

left outer join
(select column1, column2 from Table2) b
on
a.ID = b.column1


Thanks


[pipe]
 
Have you tried this ?
select a.column, b.column2
from Table1 a left join
(select column1, column2 from Table2) b
on a.ID = b.column1
BTW, which version of access ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
no go, either.

it's 2003.


Anyway - I'm actually querying ODBC linked FoxPro tables [mad], which DOES NOT support subqueries in the FROM clause, so it's a lost cause. Thanks anyway

[pipe]
 
Simply use saved queries you can then join.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Can I save a query via SQL? I.E. "CREATE VIEW ..." or somthing?

Thanks..

[pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top