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

JOIN Problem

Status
Not open for further replies.

colep

Programmer
Jul 18, 2002
58
0
0
US
Can anyone tell me what is wrong with this Select Statement???

SELECT morning_show.page_header,first_dj.img AS img1,second_dj.img AS img2 FROM morning_show LEFT JOIN djs AS first_dj ON first_dj.id=morning_show.dj1_id LEFT JOIN djs AS second_dj ON second_dj.id=morning_show.dj2_id;

It is giving me this error: You have an error in your SQL syntax near 'ON first_dj.id=morning_show.dj1_id LEFT JOIN djs AS second_dj ON second_dj.id=mo' at line 1

I'd appreciate any help!!!!

Thanks,
Cole ;)
 
Can't see anything wrong there, unless it's objecting to the semicolon at the end, which is only accepted by some client interfaces.

-----
ALTER world DROP injustice, ADD peace;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top