Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT - SQL command with more than one Outer Join
Message
From
18/07/1998 10:05:40
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
18/07/1998 10:03:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00118811
Message ID:
00118966
Views:
18
Snip...
>A join containing more than one table is structured like this :
select .. ;
>  from myTable1 ;
>       inner|left|right|outer join myTable2 ;
>       inner|left|right|outer join myTable3 ;
>  on myTable2.id2 = myTable3.id3 ;
>  on myTable1.id1 = myTable2.id2 ;
>       where ...
"on" parts are written in reverse order. And if I don't remember wrong there should be one example in home()+"samples\data\testdata" joining four tables.
>Cetin
Ooops !
select .. ;
>  from myTable1 ;
>       inner|left|right|full join myTable2 ;
>       inner|left|right|full join myTable3 ;
>  on myTable2.id2 = myTable3.id3 ;
>  on myTable1.id1 = myTable2.id2 ;
>       where ...
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
Reply
Map
View

Click here to load this message in the networking platform