Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 [IN] VS [NOT IN] and Performance Issue...

Author  Topic 

ZarrinPour
Yak Posting Veteran

66 Posts

Posted - 2008-11-16 : 13:25:27
Hi all
I want to know is there any major difference (in the point of query performance ) between above operators ?
How are they defferent? which one is better or has better performance
and which one we should avoid from?

Thanks in advance.
Regards.


Nothing is quite impossible!

hey001us
Posting Yak Master

185 Posts

Posted - 2008-11-16 : 15:11:26
[IN] is the best for performance wise, and avoid [NOT IN]

hey
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2008-11-16 : 17:46:39
For huge data my experience is to avoid both of them an use where exists / where not exists instead.

Greetings
Webfred


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -