Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which query is faster?
Message
From
13/01/2001 10:36:59
 
 
To
13/01/2001 09:39:42
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00463375
Message ID:
00463381
Views:
14
>Hi,
> I am developing multiuser application. I have a query which need to join 3 tables through network. Could I know, which way of SQL coding is faster?
>
>1. Join 3 tables in ONE SQL Statement
>
>2. Firstly, join 1st and 2nd table and then join the 2nd with the 3rd table.
>
>
>Thank you

The answer depends on how big the tables are and the types of joins involved. Gnerally, three table joins will not cause problems. I think VFP supports up to seven table joins. In my experience, however, I have found that eanything over three tables tends to impact performance. The best thing to do is test each scenario and decide for yourself.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform