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 / vandana chand

where allows only single value in where Clause.
where as IN operator allwos multiple values in Where clause.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does sql server use java?

747


What purpose does the model database server?

865


How can delete duplicate records in cte in sql server?

712


Do you know what is normalization of database? What are its benefits?

744


What is collation?

893


How to create dbo table in sql server?

707


What are the differences between decimal and float in ms sql server?

767


What is a field name?

716


What is SQL Azure Firewall?

128


What are the requirements on sql server network connections?

699


what is database replicaion? What are the different types of replication you can set up in sql server? : Sql server database administration

738


What is the default port for SQL Server over a firewall?

795


How you can get the list of largest tables in a database?

699


Explain boyce and codd normal form(bcnf)?

713


What are the purposes of floor and sign functions?

738