IN Vs OR operator which is best to use sql server.
Answer Posted / harinireddy
in is peferable bcoz
by using in we can write set of values at time n check it
where as when we use or we need to mention for each n every
value
like ...
select emp_id from employee where emp_id in(1,2,3,4..)
but in case of or...
select emp_id from employee where emp_id=1 or emp_id=2 or
emp_id=3 or emp_id=4...
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
How will you add a dimension to cube? : sql server analysis services, ssas
What happens if null values are involved in bitwise operations?
Can primary key be a foreign key?
What are the different types of replication you can set up in sql server?
What are the general features of sql server management studio? : sql server management studio
How many non clustered indexes there can be on table ?
Differentiate between delete and truncate.
What is the purpose of optimization?
What is mapping schema?
What do you mean by a dependent functionality in a build?
What is buffer cash in sql server?
What is the difference between NOROW and LOCKROW?
What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?
How to create median function?
Do you know what guidelines should be followed to help minimize deadlocks?