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

Jaipal Sing: Lets say I will keep only one value (123) in IN
clause. In this case what is the real difference??
This is how Question asked to me!! and I am answer less...

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the database you used in your final year project?

535


How to create database with physical files specified in ms sql server?

538


What happens if null values are involved in bitwise operations?

603


Does a full backup include transaction log?

479


What is the data tier application?

145






What is the Control Flow in SSIS

572


What is 'write-ahead log' in sql server 2000 ?

625


Can select statements be used on views in ms sql server?

580


Explain what is lock escalation and what is its purpose?

511


What is sub-query in sql server? Explain its properties.

574


Explain about temporary stored procedure?

524


What are the difference between primary key and unique key? : sql server database administration

523


How to drop an existing user defined function in ms sql server?

561


what is a join and explain different types of joins? : Sql server database administration

536


What are different replication agents and what's their purpose? : sql server replication

568