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

What are the disadvantages of primary key and foreign key in SQL?

805


What are the extra roles available in msdb? : sql server security

845


How to list all dsn entries on your local machine using odbc_data_source()?

753


Can We Use Data-grids For Our Report In Ssrs?

163


What is the difference between dataadapter and datareader?

727






Does partitioning help performance?

685


Explain how to use linked server?

741


What function does a database engine serve in the sql server?

761


How do you make a trace?

753


How to get a list of columns using the "sp_help" stored procedure in ms sql server?

752


Explain error and transaction handling in sql server?

680


Find columns used in stored procedure?

704


What is acid properties?

777


How to turn on the mssql api module in php?

759


What is row_number()?

771