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

how to control the amount of free space in your index pages? : Sql server database administration

1045


Define candidate key, alternate key, and composite key.

928


How to find the version of sql server? : sql server database administration

1119


How do triggers work?

945


You want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition?

1073


What is difference statement and preparedstatement?

988


What is the correct order of the logical query processing phases?

938


What is the command dbcc checkdb used for?

1015


Explain the properties of subqueries in sql server?

1085


What are translations and its use? : sql server analysis services, ssas

1045


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

1001


How can windows applications connect to sql servers via odbc?

1129


What is 1nf 2nf and 3nf?

892


Why we need sql server?

972


What is the difference between nvl and nvl2?

982