Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outer Join in fp 2.6
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00057151
Message ID:
00057268
Views:
23
>>Ok I lost the file that showed how to do an outer join in fp2.6.
>>
>>can anyone help me out?
>>
>>srussell@bdbc.com wk
>>srussell@wnm.net hm
>>
>>TIA
>>
>>__Stephen Rusell
>>Memphis FPUG
>Stephen,
>
> SELECT ;
> FROM TableA, TableB ;
> WHERE TableA.PrimaryKey = TableB.ForeignKey ;
> UNION ;
> SELECT ;
> FROM TableA ;
> WHERE TableA NOT IN(SELECT ForeignKey FROM TableB)

I believe Jim left ".PrimaryKey" off the "TableA" in the last WHERE clause.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform