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

Can you change the data type of a column in a table after the table has been created? If so, which command would you use?

1029


Explain four layers of abstraction microsoft architectured?

147


How can you manage sql azure security?

101


What is blocking and how would you troubleshoot it? : sql server database administration

1043


why would you call update statistics? : Sql server database administration

1086


Do you know how to implement service broker?

928


What is tablesample?

1110


New concepts of sql server 2005 use in your project.

2360


tell me the disaster recovery plan

2516


What is index in an assignment?

954


What is the guest user account in sql server? What login is it mapped to it? : sql server security

1064


What protocol does sql server use?

941


what is the Ticketing tool used in Wipro technologies at Bangalore...???

8156


What does it mean to manipulate data?

992


Name 3 ways to get an accurate count of the number of records in a table?

1039