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 / ved

EMPID=123 will show only one row....if you want to see multiple row then use EMPID IN (1,2,3)


Pratically Done.

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different kinds of ssrs reports?

192


What is difference between rollback immediate and with no_wait during alter database?

782


What is meant by indexing?

665


What happens if null values are involved in datetime operations?

703


What is a deadlock and what is a live lock?

752






What do you understand by physical_only option in dbcc checkdb?

747


how to create “alternate row colour”?

128


Write a query for primary key constraint with identity key word?

770


Explain logical operators in sql server?

741


What is a table called, if it has neither cluster nor non-cluster index? What is it used for?

800


Tell about MOM Tool(Microsoft Operator Manager)?

1595


Which feature in sql server 2008 has surprised you? You can name just one. : sql server database administration

689


Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication

780


Are connections to sql server encrypted?

746


What is ddl command?

702