Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting multiple realtions between SQL tables
Message
From
26/08/1999 11:38:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/08/1999 11:09:44
Jeff Lovin
Dewitt & Company Inc
Houston, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00257938
Message ID:
00257974
Views:
14
>Good Morning
>
>I am in need of setting relations between several (3 or 4) SQL tables to perform an accurate query. Is this done with the JOIN command? Any help that you could give or pass to me would be greatly appreciated. Thank you

Yes. Inner, Left, Right and Full join. Check testdata.dbc for an example joining 4 tables. But unlike the example there try to use syntax like :
... from tab1 ;
    join tab2 ;
       on tab1.field = tab2.field ;
    join tab3 ;
       on tab3.field = tab2.field2 ;
...
This way it's easier to set them correctly.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform