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 the order of columns in update statements matter?

672


How to convert binary strings into integers in ms sql server?

731


What is acid properties?

782


How do you check sql server is up and running?

700


What is meant by Active-Passive and Active-Active clustering setup?

756


What is row_number function?

740


What is 2nf example?

730


What command would you use to add a column to a table in sql server?

985


How to create database with physical files specified in ms sql server?

736


How to disconnect from a sql server using mssql_close()?

781


Tell me time data type, datetime2, datetimeoffset data type in sql server 2008?

741


is it important for a database administrator to understand the operating system and file access? : Sql server administration

784


How to create prepared statements using odbc_prepare()?

791


I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?

784


What are the indexes in sql server?

715