Define candidate key, alternate key, composite key.

Answers were Sorted based on User's Feedback



Define candidate key, alternate key, composite key...

Answer / 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

Define candidate key, alternate key, composite key...

Answer / swapna

A candidate key is one that can identify each row of a
table uniquely. Generally a candidate key becomes the
primary key of the table. If the table has more than one
candidate key, one of them will become the primary key, and
the rest are called alternate keys.

A key formed by combining at least two or more columns is
called composite key.

Is This Answer Correct ?    348 Yes 54 No

Define candidate key, alternate key, composite key...

Answer / anvar shadath.a

Candidate key: If any unique data column(s)in table is
called candidate key. may be one or more unique data column
(s).We can select any one unique (candidate key column) as
a primary key.

Alternate key: If one table contains more then one
candidate keys, remining candidate keys column(s) which is
not selected as a primary key is called Alternate Key.

Composite key: One primary key Contains more then one
columns is called Composite key.

Is This Answer Correct ?    75 Yes 15 No

Define candidate key, alternate key, composite key...

Answer / raghuram

Candidate Key is a Key which identifies each row of a table
uniquely. Generally a Candidate Key becomes a Primary Key
of the table. If table has more than one Candidate Keys
then one is called Primary key and rest are called
Alternative Keys.
A key is formed by two or more columns is called Composite
Keys.

Is This Answer Correct ?    80 Yes 28 No

Define candidate key, alternate key, composite key...

Answer / amar

A candidate key is one that can identify each row of a
table uniquely. Generally a candidate key becomes the
primary key of the table. If the table has more than one
candidate key, one of them will become the primary key, and
the rest are called alternate keys. A key formed by
combining at least two or more columns is called composite
key.

Is This Answer Correct ?    42 Yes 14 No

Define candidate key, alternate key, composite key...

Answer / sunil choudhary "hanumangarh"(

candidate key is a single key of each tuple.
alternative key is secondary key . for example(A entity
STUDENT an attribute of NAME,CLASS,ROLL.ID)the roll no is
primary key but id is alternate key.

A key formed combined of to or more columns called comosite
key.

Is This Answer Correct ?    88 Yes 71 No

Define candidate key, alternate key, composite key...

Answer / tanaji

A candidate key is a combination of attributes that can be uniquely used to identify a database record without any extraneous data. Each table may have one or more candidate keys. One of these candidate keys is selected as the table primary key.

Is This Answer Correct ?    23 Yes 19 No

Define candidate key, alternate key, composite key...

Answer / 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

Define candidate key, alternate key, composite key...

Answer / jeevan kurmi

A candidate key is a combination of attributes that can be uniquely used to identify a database record without any extraneous data. Each table may have one or more candidate keys. One of these candidate keys is selected as the table primary key.

Is This Answer Correct ?    2 Yes 0 No

Define candidate key, alternate key, composite key...

Answer / kishore

A candidate key is one that can identify each row of a
table uniquely. Generally a candidate key becomes the
primary key of the table. If the table has more than one
candidate key, one of them will become the primary key, and
the rest are called alternate keys.

A key formed by combining at least two or more columns is
called composite key.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Can we hide the definition of a stored procedure from a use?

0 Answers  


How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?

0 Answers   ABC,


How many cores do I need for sql server 2016?

0 Answers  


Where is trigger in sql server?

0 Answers  


How to create a stored procedure with a statement block in ms sql server?

0 Answers  






What are the different subsets of sql?

0 Answers  


Do you know spatial data types - geometry and geography in sql server 2008?

0 Answers  


When a primary key constraint is included in a table, what other constraints does this imply?

0 Answers  


What is service broker?

0 Answers  


what changed between the previous version of sql server and the current version? : Sql server database administration

0 Answers  


What is fill factor and pad index?

0 Answers  


what is an sql server?

1 Answers  


Categories