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 / soumya ghosh

Both of them will return the same record
But as per the first sentence of the question, WHERE is a Clause whereas IN is a Operator. That is the difference between both.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is candidate key with example?

922


Do you know the policy based administration feature of sql server 2008?

904


How to create a view with data from multiple tables?

963


How self join is different from outer join?

1060


Do you know what is fill factor and pad index?

940


Explain about Normalization?

1011


What is truncate table?

888


How to write a query with a left outer join in ms sql server?

924


What are ddl (data definition language) statements for tables in ms sql server?

1024


How to execute function in stored procedure sql server?

1044


Which tcp/ip port does sql server run on? How can it be changed?

975


What is acid properties?

1015


How do you improve the performance of a SQL Azure Database?

135


What is normalization? Explain its different types?

1037


What is subquery explain with example?

1005