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 / dinesh sharma

In WHERE Clause when the condition match no further scan of
table stop scanning the table after condition match.

where as IN operator It scan the full table either condition
match or not.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how to use linked server?

928


what is a transaction? : Sql server database administration

935


What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?

853


I create a separate index on each column of a table. What are the advantages and disadvantages of this approach? : Sql server database administration

1037


explain the difference between oracle- sql and sql server sql ? if both are same y we r using 2 sw.s?

2426


Do you know the capabilities of cursors?

1077


Benefits of Stored Procedures?

919


What are “lock” hints?

999


how to use DTS package in 2000,2005,2008 in sql server

1788


What do you mean by the term 'normalization'?

1128


What is partitioned view?

856


what are the core components of SSRS?

121


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

1045


Where do we use trace frag?

971


What will be query used to get the list of triggers in a database?

955