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

What are Row versions of DataRow?

604


What is a partition key?

519


What is faster join or union?

597


What are the requirements to use odbc connections in php scripts?

595


How to apply cascading referential integrity in place of triggers?

568






Would you store your query in a ssrs report or a database server? State the reason why?

108


Explain about integration services of Microsoft SQL server?

583


Why use update_statistics command in sql server?

549


Where views are stored in sql server?

557


What is normalization? What number of normalization shapes are there?

602


How many clustered indexes can be created on a table? I create a separate index on each column of a table. what are the advantages and disadvantages of this approach?

677


Why does sql studio use a single registered database repository? : sql server management studio

526


Explain about unique identifier data type in sql server?

510


What is postgresql server?

512


Do you know what are acid properties of transaction?

521