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

How many databases can we create in a single server?

187


What is normalization of database? What are its benefits?

520


How to find tables without indexes?

634


Which is the latest version of sql server and when it is released?

550


Explain forward - only cursors?

521






What is cursors? And what are the different types of cursor?

557


List all the types of user-defined functions?

526


What is the osql utility?

542


When we should use @@error?

543


Why use “pivot” in sql server?

629


What are examples of triggers?

618


What is the difference between varchar and nvarchar datatypes?

574


How do I open port 1433?

532


What is exclusive locks?

540


Explain the concepts and capabilities of sql server?

547