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

What is nonclustered index with included columns ?

554


Do you know what are the differences between lost updates and uncommitted dependencies?

547


Explain user defined functions?

621


What is ddl command?

538


How to find out what is the default collation in a database?

634






Difference between Sql server reporting services and Crystal reports?

124


You want to implement the one-to-many relationship while designing tables. How would you do it?

513


What is the difference between varchar and nvarchar?

528


Explain system views?

584


Can We Use Data-grids For Our Report In Ssrs?

147


Due to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?

874


What is user defined stored procedures?

570


How to test odbc dsn connection settings?

537


What is the significance of master, tempdb and model databases?

532


Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?

499