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 / g.m. ershad

1)select * from test2 where id=44
Output -
ID NAME
44 Ershad

2) sELECT * FROM test2 WHERE ID IN (44)
Output -

ID NAME
44 Ershad

both will return same output

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the recovery model?

553


What are the different types of locks in the database?

486


What are the instances when triggers are appropriate?

523


how many type of indexing in database?

575


Does sql server 2000 full-text search support clustering?

505






What is surrogate key? : sql server analysis services, ssas

691


What is bit data type? What's the information that can be stored inside a bit column?

518


What are different types of views?

549


Which Model uses the SET concept

577


How do I start sql server agent automatically?

500


What do we have to check in database testing?

582


Is sql server implemented as a service or an application? : Sql server database administration

509


What does top operator do?

565


If any stored procedure is encrypted, then can we see its definition in activity monitor?

547


What is ms sql server triggers?

535