Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to join 3 tables
Message
From
21/10/2003 19:05:04
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
21/10/2003 18:49:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00840872
Message ID:
00840887
Views:
22
>Hello Hilmar
>
>Thank for your reply. (see my reply to Sergey).
>
>Interesting to know with joining table 2 and 3. i'll put this in my querry help!

Oh, one more thing. You can join up to 9 (or was it 10?) tables, but if it is for a report, or some other purpose other than a view (where you need to write the data back to the underlying tables), you will often get a much faster performance if you do the join in several commands. I once split a 9-table query into several pieces, adding one table at a time to the previous result. The time required to execute the query, over the network, was reduced from 50 seconds to 2 seconds. Since then, I seldom join more than two tables at a time.

I tried other approaches, like using the FORCE clause, but I could never get near the speed I obtained by separating the queries.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform