Question
Consider a relational table with a single record for each registered student with the following attributes.
- Registration_Num: Unique registration number of each registered student
- UID: Unique identity number, unique at the national level for each citizen
- BankAccount_Num: Unique account number at the bank. A student can have multiple accounts or joint accounts. This attribute stores the primary account number.
- Name: Name of the student
- Hostel_Room: Room number of the hostel
Which of the following options is INCORRECT?
Official answer and solution
- Official answer
- A
- From
- Official GATE 2011 answer key
Solution
Analyze candidate key requirements and uniqueness properties on each attribute of the relational table.
- A candidate key is a minimal superkey that must uniquely identify every tuple in the relation.
- Statement A: The problem explicitly states that students can have joint bank accounts. When two students share a joint account, multiple student records can possess the exact same primary
BankAccount_Num. Because uniqueness is violated,BankAccount_Numcannot be a candidate key. Statement A is INCORRECT.
- Statement B:
Registration_Numis unique for each registered student, so it qualifies as a candidate key and can serve as the primary key.
- Statement C: If all students belong to the same country, their national
UIDis unique across all individuals, making it a valid candidate key.
- Statement D: Any superset of a superkey is also a superkey, so adding
UIDto an existing superkey preserves superkey status.
Final answer
A
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2011 Computer Science and Information Technology (CS)
- Question
- 12 of 65, printed as CS Q.12
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.