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 / chandan

IN operator is used to specify multiple variable.
while in this query both result will be same.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the encryption mechanisms in sql server?

1082


Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?

1123


How to find the login name linked to a given user name?

1060


How to find the source of a table in sql server?

1037


How can you insert values in multiple rows using one Insert statement?

1152


How to fine-tune reports?

279


What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?

1243


How does the report manager work in SSRS?

158


How can I get data from a database on another server?

1049


Describe in brief sql server monitoring ways.

1102


Difference between drill down and drill through report.

1005


What is difference between inner join and join?

1096


Where are sql server user names and passwords stored in sql server?

1155


Do you know spatial data types - geometry and geography in sql server 2008?

1092


How many types of subqueries are there in sql server?

1034