Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I got a little confused by all these keys. As I understand

A key of a relational schema = 
The minimal subset of a superkey that is still a key = 
A candidate key

Is this correct or not?

share|improve this question

Just found out very neat explanation:

superkey: a set of attributes which will uniquely identify each tuple in a relation

candidate key: a minimal superkey

primary key: a chosen candidate key

secondary key: all the rest of candiate keys

prime attribute: an attribute that is a part of a candidate key (key column)

nonprime attribute: a nonkey column

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.