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...

IN Vs OR operator which is best to use sql server.

Answer Posted / sandeep rana

Both are used for different purposes like...

select * from table where data in(1,2,3,4,5,6)


select * from table where data in(1,2,3,4,5,6) or data1
like('%s','%t')

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are trace flags and mention a few common trace flags used with sql server?

1071


What are SSL and TSL protocols?

967


When a primary key constraint is included in a table, what other constraints does this imply?

968


What is clr ddl trigger?

937


How does index makes search faster?

958


How to drop existing views from a database in ms sql server?

1079


Why do you need a sql server?

1080


What is report snapshot in ssrs?

264


When does a workload on SQL Azure get throttled?

129


How to trouble shoot if unable to connect SQL Server

1974


What happens to a trigger with multiple affected rows?

916


How do you delete duplicate records in sql server?

1032


Does the unique constraint create an index?

1038


What is a cache in ssrs?

134


What are statistics?

985