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

Please explain go command in sql server?

776


Explain the dirty pages?

753


How do I manually uninstall an instance of sql server 2016?

716


What is the difference between nvl and nvl2?

715


What is the sql case statement used for?

755






Why do you need a sql server?

683


How can sql server instances be hidden?

688


What does it mean to manipulate data?

742


What is indexed view?

749


as a part of your job, what are the dbcc commands that you commonly use for database maintenance? : Sql server database administration

644


Explain primary key?

725


What is wide table?

693


What is the server name for sql management studio?

654


What is the command dbcc checkdb used for?

705


Does the order of columns in update statements matter?

670