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 invoke a trigger on demand?

538


What are the different types of lock modes in sql server 2000?

487


How many triggers are possible per table?

622


How will you make an attribute not process? : sql server analysis services, ssas

582


Explain stored procedure?

594






What is DCL?

589


What is a data source file?

495


What is store procedure? How do they work? When do you use?

509


What is read committed?

605


What is an expensive query?

536


how to trace the traffic hitting a sql server? : Sql server database administration

1123


What are commonly used mssql functions in php?

556


What are the different types of data sources in ssrs?

142


What are different types of views?

549


How to create a view with data from multiple tables?

557