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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current version of postgresql?

734


What does count (*) do in sql?

737


how can you see all indexes defined for a table? : Sql dba

716


what is the difference between cluster and non cluster index? : Sql dba

732


What are the datatypes available in pl/sql ?

793






What is query syntax?

717


Why is a trigger used?

697


what is a materialized view? : Sql dba

753


Why use truncate instead of delete?

720


what is 'trigger' in sql? : Sql dba

726


What are sql objects?

738


What is spool?

790


How does sql store data?

663


Does group by remove duplicates?

754


Why is stored procedure faster than query?

701