Consider the relationship R(EnrollID, Name, Age, Email).
EnrollID Name Age Email 1 Ajay 23 [email protected] 2 Ajay 24 [email protected] 3 Amir 23 [email protected]
Which of the followings can be candidate keys?
(A) Age
(B) Email
(C) Name
(D) EnrollID
Consider the relationship R(EnrollID, Name, Age, Email).
| EnrollID | Name | Age | |
|---|---|---|---|
| 1 | Ajay | 23 | [email protected] |
| 2 | Ajay | 24 | [email protected] |
| 3 | Amir | 23 | [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.
| Attribute | Values | Unique? |
|---|---|---|
| Age | 23, 24, 23 | No |
| ajay.1, ajay.2, amir.3 | Yes | |
| Name | Ajay, Ajay, Amir | No |
| EnrollID | 1, 2, 3 | Yes |
Age and Name: both have repeated values (23 twice, Ajay twice), so they cannot identify a row uniquely.
Related questions:
2025: 27 May Shift 2
2025: 21 May Shift 1
2026: 29 May Shift 1
2026: 24 May Shift 1
Calculate the degree and cardinality of the given relation below:
| ID | Name | Address | Phone No. | |
|---|---|---|---|---|
| 001 | Ajay | [email protected] | A1-Shakti Nagar, Bangalore | 55218936 |
| 002 | Amit | [email protected] | C32- Indira Nagar, Lucknow | 45321789 |
| 003 | Ashu | [email protected] | 117/82 Patel Nagar, Delhi | 98567894 |
| 004 | Ashok | [email protected] | 249-250, Motinagar, Gujrat | 97698541 |
2026: 23 May Shift 2