Define candidate key, alternate key, composite key.

Answer Posted / sheharyar ali

Candidate Key
A coulmn in database table that can be used to uniquely identify each row in that table is said to be a Candidate Key
Primary Key
IF a Table has a coulmn or min Combination of Column(s) that can uniquley Identify each Row in that table then such a column or group of Column is said to be Primary Key

Alternate Key
A table may contain more than one Cadidate Column.Among these Candidate column the most appropiate one is genrally chosen as Primary Key While others that are left out are Said to be Alternate Keys.

Composite Key
Combination of more than One Column to uniquely identfiy all rows in a Table is said to be Composite Key

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a transact-sql statement?

543


Explain linked server in sql?

702


What is single-user mode?

526


What is store procedure?

654


Can a table be created inside a trigger?

570






In what sequence sql statement is processed?

596


Why use “in” clause in sql server?

562


How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?

590


How to filter records of table in SQL SERVER?

605


What is the difference between mysql and mysqli?

587


How to rebuild all indexes on a single table?

601


Does a server store data?

506


What is ssrs?

99


How to get the definition of a trigger back?

557


What are different types of table joins?

562