Question:
can anyone answer me what is the basic difference between primary key, superkey, candidate key, composite key?
anonymous
2011-09-16 23:41:41 UTC
in simple language & when they are used?Advantages & disadvantages?
Four answers:
anonymous
2011-09-16 23:44:10 UTC
http://stackoverflow.com/questions/6951052/key-superkey-minimal-superkey-candidate-key-primary-key-differences
anonymous
2016-05-14 19:42:53 UTC
candidate key - is a minimal superkey which can be used as a primary key. primary key- has unique vallue for each record. is a candidate key that you have chosen as superkey. alternate keys- ?? dnt know about that hope this might help.
anonymous
2011-09-17 00:02:04 UTC
A primary key is your key for the front door. Always bring it with you as it's used most often.

A super key is your key for the back door. Sometimes you need it like when the front door is broken. But you usually use the front door, so it is optional whether to bring it with you.

A candidate key is a spare key for the front door. Simple as that.

A composite key is a combination of a primary and a candidate key. It is very complicated to explain what this means.
Fausto
2016-07-02 21:54:27 UTC
My Yeast Infection Cured : http://YeastCured.uzaev.com/?aFyy


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...