dbTalk Databases Forums  

EXISTS Versus IN

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss EXISTS Versus IN in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robert Hamilton
 
Posts: n/a

Default EXISTS Versus IN - 05-19-2005 , 01:16 PM






Is there any performance differences between the use of EXISTS and IN within
queries?

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: EXISTS Versus IN - 05-19-2005 , 01:52 PM






Yep.

Exists stops when it finds the value and IN just ploughs on.

Have a look here

http://www.sql-server-performance.co..._sql_where.asp



"Robert Hamilton" <RobertHamilton (AT) discussions (DOT) microsoft.com> wrote in
message news:RobertHamilton (AT) discussions (DOT) microsoft.com:

Quote:
Is there any performance differences between the use of EXISTS and IN within
queries?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.