Define candidate key, alternate key, composite key.

Answer Posted / shruti singh

Any attribute that is uniquely identify a row in a table is
candidate key for the table. We select one of the candidate
key as Primary key. All candidate keys which are not chosen
as "primary key" are Alternate keys. The key which uniquely
identify the rows of the table and which is made up of
more than one attribute is called Composite key.
As for Example:In a class we have to select Class Monitor.
So A, B,C and D stand for that post. So A,B,C and D are
candidate for monitor so these are candidate key. We select
B as monitor so B is primary key and A,C and D can be
monitor but not selected as a monitor so they are
alternative choise. So A,C and D are alternate key.
When two students of class work together in a project than
they are composite key for the class.

I TRIED TO EXPLAIN THESE KEY, IF YOU LIKE PLEASE DO
RESPONSE. iF YOU LIKE TO ASK ANY OTHRE QUE RELATED TO SQL
SERVER YOU CAN..

Is This Answer Correct ?    541 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to restart sql server in single user mode? How to start sql server in minimal configuration mode? : Sql server database administration

662


What is a view in sql?

758


What does Master database contains?

791


What is a periodical index?

650


What is create statement?

680






what is a sub-report?

113


What are distributed partitioned views?

815


Can you explain what are various ways to enhance the ssrs report?

767


what are the Prerequisites for Replication?

10875


How to enter binary string literals in ms sql server?

822


What is update locks?

660


Explain what is use of dbcc commands?

710


Explain about Normalization?

778


Explain how does the report manager work in ssrs?

705


What is sql server locking?

704