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
What is difference between equi join and inner join?
Where can you add custom error messages to sql server?
What is dynamic cursor in SQL SERVER?
What are cursors and when they are useful?
What is the language structure to add a record to a table?
What is partitioned view?
explain databases and sql server databases architecture? : Sql server database administration
What are triggers? How do you invoke a trigger on demand?
How each E-R model constructs can be mapped to the relational model?
Why it is recommended to avoid referencing a floating point column in the where clause?
Explain about builtinadministrator?
Can a function call a stored procedure in sql server?
What is the difference between grant and with grant while giving permissions to the user?
What are the different types of join?
What are the different types of subquery?