Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between IN and EXISTS operators in
SQL Server?

Answer Posted / monal

HERE'S THE SIMPLE ANSWER:
WHEN YOU USE 'IN', WHILE CHECKING FOR WHERE CONDITION SQL
SERVER ENGINE DOES WHOLE TABLE SCAN.
IF YOU USE 'EXISTS' AS SOON AS ENGINE FINDS THE REQUIRED
ROW IT WILL STOP EXECUTING QUERY AND GOING FURTHER SCANNING
TABLE.

SO BASICALLY EXISTS IS FASTER AS COMPARED TO IN.

Is This Answer Correct ?    146 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are examples of triggers?

1125


OPTIMIZATION OF SP,CURSOR,TRIGGERS

2852


What are the different acid properties?

1118


You are creating an application where users are asked their gender in the gender combo box you have three options: ‘male’ , ‘female’ and ‘i choose not to disclose’ these options are stored in the table as 1, 0 or null which datatype should you use?

1048


How do I find sql server instance name?

1007


Does any body please help me what question's have asked for SSRS in the interview?

2201


What is a scheduled job or what is a scheduled task?

1005


What are the limitations in ssrs on sql server express edition?

195


How to connect php with different port numbers?

1147


What are the different types of replication are there in sql server 2000?

1085


What is the meaning of sql server?

1034


How we create SQL Server 2005 Reporting Services ? Give me Sample

2042


How to delete an existing database user?

1078


What do you understand by triggers and mention the different types of it?

997


Do you know what is fill factor and pad index?

1043