Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Join with more than 2 tables
Message
From
09/01/2001 12:09:30
 
 
To
09/01/2001 11:29:02
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00461136
Message ID:
00461252
Views:
15
Doug,

Thanks. Your code is very clear.

For my understanding,

In you code, SQL command will first join the first two tables (TABLE1, TABLE2), then second join the result of first join with the next table (TABLE3), then take second jion result and join it to the next table (TABLE4).
Is this correct?

If I change your code to this as a nested Join.

from TABLE1 ;
join TABLE2 ;join TABLE3 ;
join TABLE4 ;
on TABLE1.FIELD1 = TABLE2.FIELD1 ;
on TABLE2.FIELD2 = TABLE3.FIELD2 ;
on TABLE3.FIELD3 = TABLE4.FIELD3

1. Generally, how the SQL commad deal with nested jion and which Join do first, second and Third?

2. This code(I CHANGED) will get the same result like your original code?


Jim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform