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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of the database links?

789


How to convert a numeric expression from one data type to another?

697


What are commonly used mssql functions in php?

713


Explain go command in sql server?

724


Are there any preferred steps that need to be taken care of before starting the installation of sql server 2000?

743






What are the differences between left join and inner join in sql server?

770


What are ddl triggers and types of ddl trigger?

790


what is normalization? Explain different levels of normalization? : Sql server database administration

893


What is 2nf normalization?

733


What is the difference between cartesian product and cross join?

637


What does indexation mean?

696


What are the differences between web role and worker role?

116


What do you mean by subquery?

746


Write a program using SQL queries to find a unique entry in a table.

714


How do you delete a trigger?

742