What is Candidate Key in Database?

What is Candidate Key in Database?


Views: 13458 | Community Opinion: 20

Tags..  Database

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 

A candidate key of a table 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.

Candidate key of a database table must fulfill two rules:

1. at all times it holds in the relation assigned to that variable that there are no two distinct tuples (rows) with the same values for these attributes and

2. there is not a proper subset of this set of attributes for which (1) holds.




Rayhanul Islam Said..

very good , it helps me to understand about candidate key . i think it will be vry much helpful for every body...
A candidate key of a table 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.

Candidate key of a database table must fulfill two rules:

1. at all times it holds in the relation assigned to that variable that there are no two distinct tuples (rows) with the same values for these attributes and

2. there is not a proper subset of this set of attributes for which (1) holds.




fuck Said..

im not hell interested in this bullshit, its full of crap! i need detailed info abt candidate key but u guys ... just fuck!
very good , it helps me to understand about candidate key . i think it will be vry much helpful for every body...
A candidate key of a table 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.




sucksss Said..

didn't understand a bit..............................................................................................................................................................................................................................................................................................................................................................................................................................................




sagar Said..

A candidate key is a key that uniquely identifies rows in a table. Any of the identified candidate keys can be used as the table's primary key. Candidate keys that are not part of the primary key are called alternate keys.

One can describe a candidate key as a super key that contains only the minimum number of columns necessary to determine uniqueness.




neldmt@gmail.com Said..

A candidate key is a key that uniquely identifies rows in a table. Any of the identified candidate keys can be used as the table's primary key. Candidate keys that are not part of the primary key are called alternate keys.

One can describe a candidate key as a super key that contains only the minimum number of columns necessary to determine uniqueness.




ttsytfy Said..

fhfyfyyyggugfugfu ujgfhjgf ghfgh fhg fhghhgkkkkkkkkkkkkkdddddjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhooooooooooooooooooooooooooooooooooeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppddddddddddddddddddddddddddddddddddddddddddddddddiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii




pawan rohini mishra Said..

thanks for this informations this is minor but important for interview point of view...thanxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx




nand kishore Said..

which uniquely identify a record a table may have more than one candidate key from where one of key is used as primary key..................................................................................................................................................................................................................................................




nand kishore Said..

which uniquely identify a record a table may have more than one candidate key from where one of key is used as primary key............................................................................................................................................




mikka Said..

lol... koi example to de k samjha do.. ye kya bakwasiyat laga rakhi h sabne,.??

....................................................................................................................................................................................................................................................................................................................................................................................................




datta kolpe Said..

A candidate key is a key that uniquely identifies rows in a table. Any of the identified candidate keys can be used as the table's primary key. Candidate keys that are not part of the primary key are called alternate keys.

One can describe a candidate key as a super key that contains only the minimum number of columns necessary to determine uniqueness.




Bharti Said..

To view the defination of candidate key and some more sql server interview questions and code visitClick Here and also have some good questionsMore




shashi Said..

Candidate Key is the collection of all the columns which are eligible for primary key.

example:
Consider a table 'Vehicle'
The columns are [ vehicleno, engineno, vechName,...]

We can use vechileno or engineno for identifying records uniquely.

hence candidate key = { vechileno, engineno }

there fore primaryKey will be either vechileno or engineno

If primaryKey = vechileno,
then alternateKey will be engineno

For more details..
http://eoracle11g.blogspot.com




sim Said..

i like this answer .it helps to understand diff b/w primary key and candidate key..........................................................................................................................................................................................................................................................................................................okkkk




foxin Said..

Pato a rimanere al Milan Gucci Outlet ha annunciato: "Questa è la mia casa, vorrei continuare a scrivere la storia del club." Anche se i brasiliani si rifiutò di andare oltre Paris St Germain, ma il suo futuro a Milano non può essere una navigazione tranquilla. "Gazzetta dello Sport", ha detto Galliani e l'allenatore Allegri parla Venerdì, Gucci Borse allenatore rosso e nero, è probabile che per ottenere un prolungamento di contratto prima del Derby, la relazione non è armoniosa e Allegri 2012 Nuove Vendita Gucci Pa questa non è una buona notizia per la cura Allegri e Milano contratto scade in estate 2012, era stato in attesa di firmare il Gucci Donna Borse contratto, ma è stato accantonato Riconsiderazione Milano. Media italiani ripetutamente sottolineato che le piccole differenze tra i due lati del denaro, solo € 500.000 gap. Nonostante la cattiva situazione economica a Gucci Donne Borse Milano, ma un mero € 500.000 è per loro di fare così un piccolo numero di ricchi, e Allegri non si preoccupa di questo, o meno di questo bonus, la ragione fondamentale risiede Berlusconi.http://www.guccioutlet-2012.com




Biju Kodiyattil Said..

A candidate key of a table 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.
Candidate key of a database table must fulfill two rules:

1. at all times it holds in the relation assigned to that variable that there are no two distinct tuples (rows) with the same values for these attributes and

2. there is not a proper subset of this set of attributes for which (1) holds.




prakhar Said..

plz give example???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????/




pintu Said..

Thanks a lot , can you
explain a bit more without much of a complication.!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!




siddhu Said..

gand marao mughe toh samajh aa gya.. balle o balle
....................................................................................................................................................................................................................................................................................................






What do you think? Add your opinion/answer
*Name
*your opinion/answer: