Take the 2-minute tour ×
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. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.