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 diffrence between IN and EXISTS.which one is
faster.

Answer Posted / neha

In the in clause, the inner query is executed first, hence if the inner query return less data than the outer query, then use IN clause, in the other scenario, user exists clause.

Also, in the exists clause the inner query always reference outer query's table, which may or may not be the case with in IN clause.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define SQL and state the differences between SQL and other conventional programming Languages?

1260


What is the process of debugging?

1121


explain the difference between delete , truncate and drop commands? : Sql dba

1141


What is difference between nchar and nvarchar?

1095


What is clause in sql?

1176


How can triggers be used for the table auditing?

1117


Does a user_objects view have an entry for a trigger?

1049


How do you create a db file?

1065


Is the primary key an index?

1073


Does sql profiler affect performance?

1044


How do I run sql profiler?

1117


What is compound trigger?

1097


What is audit logout in sql profiler?

1073


What is mdb stand for?

1055


how is exception handling handled in mysql? : Sql dba

1125