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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
what is the main difference between constraints(like 
primary key etc..)& joins?
 Question Submitted By :: Amit
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the main difference between constraints(like primary key etc..)& joins?
Answer
# 1
Constraints are the mechanisms used by the sql server to 
control unwanted or invalid data flow into a table.

Joins are the queries used to combine the rows from two or 
more tables.
 
Is This Answer Correct ?    1 Yes 0 No
Ravikiran
 
  Re: what is the main difference between constraints(like primary key etc..)& joins?
Answer
# 2
Constraints are restrictions to make sure that data entered 
in a table must meet certain crietria. You can put 
constraint at either table level or column level. There are 
5 types of constraints. Primary Key, Foregin Key, Unique, 
Check and NOT NULL.

Joins are used to combine rows from one or more table. One 
table using Self Join and More tables using inner join, 
outer join, cross join.
 
Is This Answer Correct ?    1 Yes 1 No
Monal
 
 
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What are the different ways of moving data/databases between servers and databases in SQL Server?  1
What are functions  3
I have a table EMP in which the values will be like this EmpId Ename Sal DeptId 11 Ram 10000 10 11 Ram 10000 10 22 Raj 20000 20 22 Raj 20000 20 33 Anil 15000 30 33 Anil 15000 30 I want to delete only duplicate Rows. After Delete I want the output like this EmpId Ename Sal DeptId 11 Ram 10000 10 22 Raj 20000 20 33 Anil 15000 30 DELL10
In clustered and non clustered indexes which one is faster while executing a query ?  1
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  2
How many max. conditions can b written under the WHERE clause? Like select * from [tabnam] WHERE (cond1...or..cond2....or...cond3...and.....so on.....??? (upto how much extent))????? SAP-Labs2
Is it possible to allow NULL values in foreign key? I s it possible to use different constraints for the same column in the table (i.e) (id int NOT NULL,UNIQUEUE)  1
What is database replicaion? What are the different types of replication you can set up in SQL Server?  2
i have 4 tables.. T1, T2, T3, T4.. these tables have the same structure and they store the information entered in different years.. T1 stored 2002, T2 stored 2003, T3 stored 2004 and T4 stored 2005.. i want to copy contents in T1 to T2, T2 to T3, T3 to T4 and T4 to T1.. how do i do that? Temp tables cannot be used..  2
Which data type can be used only on OUTPUT parameters of the stored proceduer?  2
What is an execution plan? When would you use it? How would you view the execution plan?  1
What is the difference between windows authentication and sql server authentication HCL4
What is Covering Indexes? Plz explain with example  2
What are explicit and implicit transactions?  2
How would you Update the rows which are divisible by 10, given a set of numbers in column?  1
There is a trigger defined for INSERT operations on a table, in an OLTP system. The trigger is written to instantiate a COM object and pass the newly insterted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better?  1
what is physical sort data and logical sort data in index?  2
How to delete particular value in the column of a table.Is it possible or not?if possible give it as in query.  4
I have to display ten columns values from diffrent ten tables. how many joins are require? HCL8
create procedure proc1 (@a int) as begin if @a=1 create table #temp(a1 int) else create table #temp(a1 int) end while executeing the above code it shows error like '#temp already exist' .why it shows an error? IBM5
 
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