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 / soumya ghosh

Both of them will return the same record
But as per the first sentence of the question, WHERE is a Clause whereas IN is a Operator. That is the difference between both.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a check constraint?

649


What does <> symbol mean?

562


How to turn off warning messages during php execution?

538


What are the different types of upgrades that can be performed in sql server?

697


How to create a login account in ms sql server to access the database engine using "create login" statements?

578






What is exclusive locks?

545


Mention the differences between substr and charindex in sql server.

530


What is the current limitation of the size of SQL Azure DB?

102


explain different types of joins? : Sql server database administration

543


What is a non equi join?

553


Explain what is dbcc?

603


Show Practically Sql Server Views are updatable?

601


Explain four layers of abstraction microsoft architectured?

124


What is the dbcc command and why is it used?

578


How to delete duplicate rows in sql server?

584