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 data set in report?

95


What is ddl command?

529


How can you find out which stored procedures are recompiling?

512


What does truncate do?

531


Define Business Edition in SQL Azure?

88






What the different topologies in which replication can be configured?

556


Explain transaction server explicit transaction?

503


how do you determine the Load performance of any query in sql server {example how do u determine performance of a select stmnt which returns Dynamically many no of records ... some times 100,1000,10000 etc., }

1848


What is the server name for sql management studio?

473


Explain the steps to use transact-sql cursor?

526


What is RMS migrations?

1698


What does null mean?

599


What is the difference between a fill factor of 100 and 0?

528


What is the difference between a check constraint and a rule?

622


How would we use distinct statement? What is its use?

603