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 sqlservr.exe - process - sql server (sqlex?press)?

604


What are logical/boolean operations in ms sql server?

547


How many types of subqueries are there in sql server?

469


How do I find the sql server instance name?

531


What is partition, how will you implement it? : sql server analysis services, ssas

606






Explain comment on transactions?

560


What stored by the msdb? : sql server database administration

562


What is the default value of an integer data type in sql server 2005?

590


What do you understand by sql server agent?

536


How to delete a login name in ms sql server?

538


what is a live lock? : Sql server database administration

500


What is BLOCK statements in SQL?

811


What do you mean by cardinality?

497


What is the difference between the export /import functions in sql studio and standalone sql manager? : sql server management studio

591


When we should use and scope of @@identity?

557