ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories >> Software >> Databases >> SQL-Server
 
 
 
Question
What is the difference between IN and EXISTS operators in
SQL Server?
 Question Submitted By :: Durga Prasad
I also faced this Question!!     Rank Answer Posted By  
 
Answer
using the IN clause, you're telling the rule-based 
optimizer that you want the inner query to drive the outer 
query (think: IN = inside to outside). 

When you write EXISTS in a where clause, you're telling the 
optimizer that you want the outer query to be run first, 
using each value to fetch a value from the inner query 
(think: EXISTS = outside to inside). 

Thank you
 
0
Vijaykumar Dolli
 
View All Answers
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com