Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL question
Message
From
14/02/2017 13:48:57
 
 
To
14/02/2017 10:30:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01647876
Message ID:
01647954
Views:
101
>Yes, the "null" method blew my mind when I first encountered it (in an example much more complex, using a join Select). Using it has trimmed 80% off the SQL times (against SQL Server 2014) in our large queries, compared to IN SELECT. SQL Server, for one, produces the same Query Plan for EXISTS and IN SELECT, in case anyone is wondering.
>

In SQL Server, why wouldn't you use the EXCEPT keyword?
SELECT iID FROM Table2
EXCEPT
SELECT iID FROM Table1
http://www.tomorrowssolutionsllc.com/Articles/Combining%20Query%20Results.pdf

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform