ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
IN Vs OR operator which is best to use sql server.
 Question Submitted By :: Preethi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: IN Vs OR operator which is best to use sql server.
Answer
# 1
hi i am swaraj.
Ans:-

As per my opinion The IN operator is best B'coz
Due to IN operator at one time multipale requirtment
van satisfied
But Due to OR operator Only one requirtment get satisfied.
So IN operator is Good.
 
Is This Answer Correct ?    0 Yes 0 No
Swaraj
 
  Re: IN Vs OR operator which is best to use sql server.
Answer
# 2
hi i am swaraj.
Ans:-

As per my opinion The IN operator is best B'coz
Due to IN operator at one time multipale requirtment
van satisfied
But Due to OR operator Only one requirtment get satisfied.
So IN operator is Good.
 
Is This Answer Correct ?    0 Yes 0 No
Swaraj
 
 
 
  Re: IN Vs OR operator which is best to use sql server.
Answer
# 3
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 ?    4 Yes 0 No
Harinireddy
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
How to handle errors in Stored Procedures. I want to display a message to the user in the .aspx page that is calling a stored procedure in it's code behind. please help me. 247Customer1
How will oyu test the stored procedure taking two parameters namely first name and last name returning full name?  3
I have to display ten columns values from diffrent ten tables. how many joins are require? HCL8
hi, i have a table called names and field name select * from names name a b c d i want to display like this name a,b,c,d how it is possible Regards Baiju  3
WHY CAN WE CREATE ONLY ONE CLUSTERED INDEX ON A TABLE IN SQL SERVER?  6
How to find the last update record in SQL Server?  3
9. Write a query to list a new column with the difference in temp of the cities Delhi and Mumbai, Mumbai and Jammu and soon. Consider the following table : City_id City Temp. 1 delhi 40 2 Mumbai 35 3 Jammu 32 4 Pune 18  1
What is the difference between Userdefined function and stored procedure? Explain and give the example also  4
What is RAID and what are different types of RAID configurations? Wipro5
What are SQL Jobs, please mention the use of it and how to create them. 247Customer1
Lets say due to N/W or Security issues client is not able to connect to server or vice versa. How do you troubleshoot?  1
How can we write or define DDL statements in Sql server and DML statements?  1
Can we create a clustered index on composite primary key.  2
Can Having clause be used without Group by clause? CTS3
how do we find every fifth record in a table  11
Explain the basic concepts of SQL server architecture?  2
What are the steps you will take to improve performance of a poor performing query? HCL1
How to perfor If the table running time is taking 2hours and table is having 10 rows in it?  1
what are batch in sql server? Satyam2
there is a table having two columns no and name and the data is 1 A 2 B 3 C write a query that will result a horizontal output A,B,C vsworx7
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com