Practice mode DBMS and SQL

Table Student(roll_no, cnic, email, name) has roll_no, cnic and email each unique and never NULL. If roll_no is chosen as the primary key, what are cnic and email called?

Correct answer C. Alternate keys

Explanation

All three of roll_no, cnic and email are candidate keys, since each alone uniquely identifies a student. The designer chooses one, roll_no, as the primary key. The candidate keys that were not chosen are called alternate (secondary) keys and are usually enforced with UNIQUE constraints. They are not composite keys, because each consists of a single attribute.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.