Skip to main contentSkip to solution

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

✅ Correct Option: 4

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.

Keyboard Shortcuts

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