Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select joining same table multiple times
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00388673
Message ID:
00388687
Vues:
9
Geeze! One more time. I will get the copy-paste-edit right this time:

select A.ContractID, ;
B.LastName LN1, C.LastName LN2, D.LastName LN3 ;
E.LastName LN4, F.LastName LN5, G.LastName LN6 ;
from Contracts A ;
left join Customer B on A.CustID1 = B.CustID ;
left join Customer C on A.CustID2 = C.CustID ;
left join Customer D on A.CustID3 = D.CustID ;
left join Customer E on A.CustID4 = E.CustID ;
left join Customer F on A.CustID5 = F.CustID ;
left join Customer G on A.CustID6 = G.CustID ;
order by 1
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform