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

both are same

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use max in where clause?

695


What is the use of stored procedure?

662


How many cores do I need for sql server 2016?

670


What are the differences between char and nchar in ms sql server?

723


How to modify the underlying query of an existing view?

747






How to delete a login name in ms sql server?

704


Name 3 ways to get an accurate count of the number of records in a table?

755


What should be the fill factor for indexes created on tables? : sql server database administration

816


What do you mean by data integrity?

786


How to invoke a trigger on demand?

727


between cast and convert which function would you prefer and why?

727


Disadvantages of the indexes?

752


Explain intellisense for query editing

756


Do you know query execution plan?

765


What is the default value of an integer data type in sql server 2005?

745