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 / jaipal singh

The IN operator allows you to specify multiple values in a
WHERE clause.
if we want to select the persons with a EMPID equal to 1,2
and 3 from the table above.
and simply where clause allow you to select ony whose EmpID
is 123.it is main difference

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you use order by when defining a view?

917


What is for xml in sql server?

979


What is the name of reporting services config file and what’s it’s used for?

132


Why normalization is used?

967


What are extended events in sql server?

905


How many columns can exist together per table?

1104


How does using a separate hard drive for several database objects improves performance right away?

886


What is ssrs?

117


How would you use user_constraints table in DB?

941


How to define output parameters in stored procedures?

961


Why olap is used?

921


How to transfer data from a cursor to variables with a "fetch" statement?

1024


What encryption security is available in sql azure?

99


How many primary keys are possible in a table?

875


Why I am getting this error when renaming a database in ms sql server?

990