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

How does SSIS(Sql Server Integration Services) deffer from DTS(Data Transformation Services)?

1199


How to skip remaining statements in a loop block using continue statements?

991


Is sql server a database?

982


How do you drop an index?

915


What is a mixed extent?

1005


What is the report builder?

139


What is normalization and its types?

1019


What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?

901


What are the underflow and overflow behaviors on float literals?

1106


Is sql server 2016 free?

931


How to create a trigger for insert only?

1031


What is the purpose of the master database?

1115


Why people hate cursor?

1138


What stored by the msdb? : sql server database administration

999


What is database dimension? : sql server analysis services, ssas

1071