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

what is a mixed extent? : Sql server administration

1176


why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration

1135


how to invoke a trigger on demand? : Sql server database administration

1153


How do I open port 1433?

988


What are the advantages of sql azure?

140


Can group by be used without aggregate functions?

966


What are various aggregate functions that are available?

1042


What are cascading parameters in ssrs reports?

236


What is inline table-value user-defined function?

1165


What is thr feature of change data capture?

1034


Explain error and transaction handling in sql server?

1063


Can you pass expressions to function parameters?

1154


Difference between group by clause and having clause in SQL?

1028


Is mysql better than sql server?

1107


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

1123