Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which SQL will execute faster?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Which SQL will execute faster?
Miscellaneous
Thread ID:
01181138
Message ID:
01181138
Views:
48
With the VFP SQL engine, which query below will execute faster... or will they be converted to the same query? Is there a preferred syntax? All I'm doing is taking a simple where clause and moving it to the ON clause of an inner join. Thanks very much.
select a.field1, a.field2, b.fieldfromb ;
from table1 a ;
inner join table2 b on b.somefield=a.somefield;
where a.field1="X"
or this:
select a.field1, a.field2, b.fieldfromb ;
from table1 a ;
inner join table2 b on a.field1="X" AND b.somefield=a.somefield
Next
Reply
Map
View

Click here to load this message in the networking platform