The relation GUARDIAN has four attributes:
GUID: unique id of the guardian
GName: name of the guardian
GPhone: contact number of the guardian
GAddress: contact address of the guardian
Out of which GUID and GPhone always take unique values. No two guardians will have same phone number or same GUID. Hence, these two attributes are the ______________as they both are eligible for primary key.
The relation GUARDIAN has four attributes:
GUID: unique id of the guardian
GName: name of the guardian
GPhone: contact number of the guardian
GAddress: contact address of the guardian
Out of which GUID and GPhone always take unique values. No two guardians will have same phone number or same GUID. Hence, these two attributes are the ______________as they both are eligible for primary key.
Solution
Any attribute (or set of attributes) that uniquely identifies every tuple and is eligible to become the primary key is a candidate key. GUID and GPhone are both always unique, so both qualify as candidate keys. One of them is then chosen as the primary key.
Option 1: only one candidate key is chosen as the primary key, so it cannot describe both attributes together.
Option 2: an alternate key is a candidate key that was not chosen as the primary key. It describes only the leftover one, not both.
Option 3: a foreign key refers to the primary key of another relation, and it has nothing to do with uniqueness here.
Related questions:
2025: 14 May Shift 1
2025: 20 May Shift 1
2025: 3 June Shift 2
2025: 16 May Shift 1
2026: 23 May Shift 1