Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Joining Three tables
Message
From
18/05/1999 06:00:18
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00219935
Message ID:
00219937
Views:
16
>I want to do a join involving 3 tables using a select statement. No relations involved and no UDFs either.
>
>Table A (field1, field2, ...)
>
>Table B (field1, field4, ...
>
>Table C (field2, field5, ...)
>
>I want to join (A LEFT OUTER JOIN B on field1) and Left outer this result C on field 2

well, what you wrote is pretty much what you need

SELECT ... FROM (TableA LEFT JOIN TableB on TableA.Field1=TableB.Field1) LEFT JOIN TableC on TableA.field2=TableC.Field2 ...

Arnon
Previous
Reply
Map
View

Click here to load this message in the networking platform