Difference Between “NOT IN” and “NOT EXISTS”
0 pts.
0
Q:
Difference Between "NOT IN" and "NOT EXISTS"
SQL
Whats the difference between "NOT IN" and "NOT EXISTS" and which is better to use in SQL Queries for the performance aspects.
ASKED: Aug 29 2005  1:19 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
0 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
A correctly formatted NOT EXISTS query will execute very quickly in comparison to a NOT IN query because the the NOT IN query must make a full table scan.
Last Answered: Aug 30 2005  0:33 AM GMT by robaan   0 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0