Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select with multiple joins
Message
From
20/08/1999 13:56:08
 
 
To
20/08/1999 13:22:39
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00255950
Message ID:
00255972
Views:
33
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform