Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimizing a query
Message
 
 
To
28/01/2009 21:10:55
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01377898
Message ID:
01377970
Views:
26
>> would be much quicker as
>>
>> select myTable.myField LEFT JOIN AnotherTable on myTable.MyField = AnotherTable.myField where AnotherTable.PK IS NULL
>
>The reason of this thread is because this was not optimized. Once I changed it to the LEFT JOIN, it works really fast.

Exactly. But in your posted version I didn't see a LEFT JOIN.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform