Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL CODE - SELECT Statement
Message
From
26/08/2003 08:10:30
 
 
To
26/08/2003 02:23:46
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00823214
Message ID:
00823350
Views:
22
>Hi cecil,
>
>Unlike using NOT IN() the NOT EXIST clause does not execute an extra query (but is internally processed like a join) and therefore should be faster in most cases.
>
>
>SELECT cFileName ;
>	FROM tmpPDFFileNames a ;
>	WHERE NOT EXIST(SELECT * FROM Scan b WHERE a.cFileName = b.cFileName) ;
>	INTO CURSOR tmpPDFs
>

Actually, the NOT IN version of this query should be faster because the subquery only has to be executed once. In this version, the subquery has to be executed for each value of a.cFileName.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform