Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select with multiple joins
Message
De
20/08/1999 13:56:08
 
 
À
20/08/1999 13:22:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00255950
Message ID:
00255972
Vues:
34
>The Help File has SQL SELECT Examples my dog couldn't benifit from so could someone tell me how to do something like this:
>
>I've got a ARCust file, with 2 foriegn keys to address, 1 for the address info (includes Name, Phone, ect.) of the customer and 1 for the ShipTo of another customer. So what I do in data environments is add the address table 2 times with two aliases and set the relationships up. So could someone give me an example of a SELECT statement that would work for me.
>
>Thanks

SELECT ARCust.*, Address1.Address, Address2.Address FROM ARCust, Address Address1, Address Address2 WHERE ARCust.AddressID1 = Address1.ID and ARCust.AddressID2 = Address2.ID
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform