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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is sql server agent? : Sql dba

772


What is an index? What are the types of indexes? How many clustered indexes can be created on a table?

720


Can we create foreign key without primary key?

705


difference between anonymous blocks and sub-programs.

818


Can we write dml inside a function in sql server?

675






what is a table in a database ? : Sql dba

750


How do you use join?

700


How do I run sql profiler?

762


How many sql statements are used? Define them.

774


what is dbms? : Sql dba

735


What are schema-level triggers?

757


What is sql stand for?

743


How to handle bulk data?

1050


How delete all records from table in sql?

721


How many primary keys can a table have?

720