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

How to insert multiple rows with one insert statement in ms sql server?

1053


What are the elements of dbms?

919


How to get the definition of a stored procedure back?

918


How can you insert null values in a column while inserting the data?

1210


Explain multiserver query

959


How to count groups returned with the group by clause in ms sql server?

1005


Working with TLogs

1781


How to remove duplicate rows from table?

1162


Do you know what are the steps to process a single select statement?

917


Do you know the cursor optimization tips?

929


if no size is defined while creating the database, what size will the database have? : Sql server administration

932


How many non clustered indexes there can be on table ?

860


What do you mean by table and field in sql?

965


What is the difference between push and pull subscription? : sql server replication

1148


What are constraints?

957