Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I do multiple JOINS in an SQL SELECT?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00361751
Message ID:
00361839
Views:
20
>Is this how?
>
>SELECT *;
>FROM mytable ;
>LEFT JOIN yourtable ON mytable.mydata1 = yourtable.yourdata1 ;
>LEFT JOIN yourtable ON mytable.mydata2 = yourtable.yourdata2 ;
>LEFT JOIN yourtable ON mytable.mydata3 = yourtable.yourdata3 ;
>INTO CURSOR rpt
>
>Thanks for the info.

I'd advise against doing this, but going with 2 separate SELECT statements. VFP will only join 2 at a time anyway. At best, you'll get partial optimization.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform