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                      
tip   SiteMap shows list of All Categories in this site.
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 are different types of Keys? Please explain all the
keys with a suitable example.
 Question Submitted By :: Prateekbindal
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What are different types of Keys? Please explain all the keys with a suitable example.
Answer
# 1
There are mainly two types of keys are available in SQL server
1. PK
2. FK

1.PK-- In a Table the unique key(with no repetation and does
nota take null value) is called Primary Key 
2.FK-- Foreign Key when that PK refers to another table then
its called as foreign Key
 
Is This Answer Correct ?    7 Yes 7 No
Avishek Patra
 
  Re: What are different types of Keys? Please explain all the keys with a suitable example.
Answer
# 2
keys-A key allows us to identify a set of attributes and 
thus distinguishes entities  from each other.keys also help 
uniquely  identify relationships,and thus distinguishes 
relation with each other.
different types of keys:
(i)super key
(ii)candidate key
(iii)primary key
(iv)unique key
(v)foreign key
sk-it is a set of one or more attributes that allows us to 
identify uniquely an entity set.
ck-a super key for which no subset is a superkey is called 
a candidate key.
pk-In a table pk does not take no repetation and does not 
allow null values.
fk-it acts as a referential order.it refers one table from 
the another one.
 
Is This Answer Correct ?    0 Yes 0 No
Abdul Malik(new College)
 
 
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What is database normalization? Digicel5
What is the system function to get the current user's user id? TCS3
How to determine the service pack currently installed on SQL Server? HCL4
How m-m relationships are implemented?  1
I have to display ten columns values from diffrent ten tables. how many joins are require? HCL8
how to connect sybase to sql server 2005?. ABC1
What is indexed views? plz explain with example?  1
What is the appropriate number of test cases that you can write on a database? Microsoft1
what are the problems in logshipping?  2
After using delete statement in sql query to delete some records...to retrieve the deleted records we can get using rollback command but till that where it stores means particular location name i need....(after deleting and rollback ) iGate2
Wht is Stuff in sql ser  1
how will u create "n" possible tables in sql... Oracle1
What is an extended stored procedure? Can you instantiate a COM object by using T-SQL? HCL3
what is diffence between replicaion and logshipping?  1
What is WITH CHECK OPTION Karur-Vysya-Bank-KVB2
i want only duplicates rows from coloumn ex. emp_id(colomn name)1,1,2,3,3,4,5,5. so i want only duplicates no. iFlex2
what is a cursor and what is its use?  1
How do you know which index a table is using?  4
write the query for find the top 2 highest salary in sql server TCS23
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
 
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