What is the difference between WHERE AND IN?
OR
1. SELECT * FROM EMPLOYEE WHERE EMPID=123
2. SELECT * FROM EMPLOYEE WHERE EMPID IN (123)
WHAT IS THE DIFFERENCE?

Answer Posted / chandan

IN operator is used to specify multiple variable.
while in this query both result will be same.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a query to find 5th highest amount paid from the customer table.

701


what are the different types of SSRS reports?

122


What is autocommit mode in sql server?

708


How many types of schemas are there?

732


Do you know what are the properties of the relational tables?

788






Do you know the capabilities of cursors?

768


Can binary strings be used in arithmetical operations?

682


How to drop an existing user defined function in ms sql server?

785


When is the use of update_statistics command?

736


what is bit datatype? : Sql server database administration

651


Do you have any idea about the tcl commands?

713


What is the difference between seek predicate and predicate?

753


How to copy the tables, schema and views from one sql server to another?

738


List all the types of user-defined functions?

687


What are the different sql server versions?

680