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.

Answers were Sorted based on User's Feedback



What is the diffrence between IN and EXISTS.which one is faster...

Answer / 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

What is the diffrence between IN and EXISTS.which one is faster...

Answer / rashmi

> we use IN gives better performance when there is less number of record in a table (up to 999 records), But for large number records EXIST give better performance.
>In may or may not depends a sub query all time, But EXIST always depend on a sub query.

Is This Answer Correct ?    2 Yes 1 No

What is the diffrence between IN and EXISTS.which one is faster...

Answer / manoranjan sethy

Exist operator always faster then In operator.
because assume that we gave value like in(10) then what is does? it will search my entire table and wherever 10 is found it will return as output.
but in exist operator if 10 found then optimizer will stop the searching process that is how exist gives more performance.

ii) In operator all ways conduct pattern search process but exist conduction boolean state of search process.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

My select statement is not working as expected, So, to overcome from such issues what are the steps needed to be taken care?

2 Answers   CG,


What is a join?

0 Answers  


What is difference between ms sql and mysql?

0 Answers  


What is out parameter used for eventhough return statement can also be used in pl/sql?

0 Answers  


I want to know the difference between A Record Type and a Table.

3 Answers   Thermotech,


How does sql developer connect to oracle database?

0 Answers  


What is clustered index sql?

0 Answers  


Why is there a need for sqlcode and sqlerrm variables?

0 Answers  


What is the difference between having clause and where clause?

0 Answers  


what is dbms? : Sql dba

0 Answers  


Can we create foreign key without primary key?

0 Answers  


Why truncate is faster than delete?

0 Answers  


Categories