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

Is sql pronounced sequel or sql?

729


What is percent sign in sql?

706


What is the default isolation level in sql server? : Transact sql

553


what are date and time data types in mysql? : Sql dba

487


What is a relationship and what are they?

568






how to use regular expression in pattern match conditions? : Sql dba

514


What is latest version of sql?

513


What is where clause in sql?

520


Does pl/sql support create command?

566


Can we use update in sql function?

565


How to read xml file in oracle pl sql?

498


Is it possible to link two groups inside a cross products after the cross products group has been created?

582


What normalization means?

516


What are the advantages of normalization?

544


what is top in tsql? : Transact sql

533