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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax error in JOIN operation 1

Status
Not open for further replies.

jslmvl

Vendor
Jan 26, 2008
268
GB
Hi,

Can you tell me what is wrong:

sql = "Select * From Table1 Left Join (Select Table2.[User] From Table2 Group By Table2.[User]) On Table1.[User]=Table2.[User] "

I got "Syntax error in JOIN operation
 
You must use an alias for the subquery, try:

Select * From Table1 Left Join (Select Table2.[User] From Table2 Group By Table2.[User]) As t On Table1.[User]=t.[User]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top