Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT - SQL command with more than one Outer Join
Message
De
18/07/1998 10:05:40
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
18/07/1998 10:03:54
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00118811
Message ID:
00118966
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform