Diff between Composite key, Alternate Key, Candidate Key,
Primary Key, Unique Key, Super Key, Foreign Key



Diff between Composite key, Alternate Key, Candidate Key, Primary Key, Unique Key, Super Key, Forei..

Answer / sapan saxena

Super Key: All possible keys which can identify entities in
the table uniquely.
Primary Key: uniquely identify each entity in the table and
does not contain null and duplicate vales.
Composite key: The combination of two or more than two keys
which identifies entities uniquely.
Candidate Key: Nominee for the primary key.
Alternate Key: Rest of the candidate keys which is not the
primary key.
Unique Key: Same as primary key but can accept one null key
only.
Foreign Key: A foreign key is one or more columns whose
value must exist in the primary key of another table.

Is This Answer Correct ?    41 Yes 2 No

Post New Answer

More SQL Server Interview Questions

What is INTVAL( )and where we use Plz any body help me

1 Answers  


How to check what was the last restore transaction LSN on Log-Shipping and Mirroring when we doesn't have a Monitor server and Witness server?

2 Answers   IBM,


How to work on DTS?what is the main requirement?

1 Answers   Getit, ivan,


Why are views required in the sql server or in any other database?

0 Answers  


What is the user of Primary key?

0 Answers  






What are the system database in sql server 2008?

0 Answers  


What are the essential components of sql server service broker?

0 Answers  


what is blocking? : Sql server database administration

0 Answers  


what is dbcc? : Sql server database administration

0 Answers  


What are views in ms sql server?

0 Answers  


How to find the source of a table in sql server?

0 Answers  


Explain the cursor lock types?

0 Answers  


Categories