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 / g.m. ershad

1)select * from test2 where id=44
Output -
ID NAME
44 Ershad

2) sELECT * FROM test2 WHERE ID IN (44)
Output -

ID NAME
44 Ershad

both will return same output

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where sql server usernames and passwords are stored in a sql server?

990


Define master database?

1078


Is null vs coalesce?

889


how many no of arguments can be passed in procedures and functions

5567


When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?

1103


Different types of keys in SQL?

1101


how to create a scrollable cursor with the scroll option? : Sql server database administration

1094


What does this statement do @@rowcount?

975


What are types of scd? : sql server analysis services, ssas

1017


What are data files?

1044


Why do we backup Active Directory ?

1046


What is the dbcc command and why is it used?

1053


What is candidate key with example?

983


What does the on update no action do?

1030


What is data file in computer?

951