Skip to main contentSkip to solution

Consider the relationship R(EnrollID, Name, Age, Email).

EnrollIDNameAgeEmail
1Ajay23[email protected]
2Ajay24[email protected]
3Amir23[email protected]

Which of the followings can be candidate keys?

(A) Age

(B) Email

(C) Name

(D) EnrollID

Solution

✅ Correct Option: 1

A candidate key is an attribute (or set of attributes) whose values are unique for every row. In the given table, EnrollID (1, 2, 3) and Email (all three different) have no repeated values, so both can be candidate keys.

AttributeValuesUnique?
Age23, 24, 23No
Emailajay.1, ajay.2, amir.3Yes
NameAjay, Ajay, AmirNo
EnrollID1, 2, 3Yes

Age and Name: both have repeated values (23 twice, Ajay twice), so they cannot identify a row uniquely.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question