Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How do you create an execution plan?

954


Explain the disadvantages/limitation of the cursor?

965


How to count duplicated values in a column in ms sql server?

1099


What are the restrictions that views have to follow? : SQL Server Architecture

1007


What is unpivot?

1017


Explain boyce and codd normal form(bcnf)?

965


Where does the copy job runs in the log shipping primary or secondary? : sql server database administration

1045


How do you make a trace?

1030


Explain triggers?

1017


What is the difference between truncate and delete commands?

1072


What is the difference between mysql and mysqli?

1207


how to avoid cursors? : Sql server database administration

976


How to insert new line characters into strings?

996


What is the purpose of sql profiler in sql server? : sql server database administration

1113


Define indexes?

1050