GATE / CS ARCHIVE

GATE CSE 2011 / QUESTION 12

Candidate key with joint bank accounts

Database Management Systems · Functional Dependencies & Keys · Full GATE CSE 2011 paper

GATE 2011, Q12 1 mark · MCQ
Report issue

Functional Dependencies & Keys

Question 12, GATE 2011: A student table has one row per registered student: Registration_Num is unique per student; UID is nationally unique per citizen; BankAccount_Num stores a primary account, and students may have multiple or joint accounts; Name is the student's name; Hostel_Room is the room number. Which statement is INCORRECT?

(A) BankAccount_Num is a candidate key
(B) Registration_Num can be a primary key
(C) UID is a candidate key if all students are from the same country
(D) If S is a superkey and S intersect UID is NULL, S union UID is also a superkey
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Joint accounts allow two students to have the same primary BankAccount_Num, so it need not uniquely identify a student and is not guaranteed to be a candidate key. Registration numbers are unique; a national UID is unique under the stated same-country assumption; adding an attribute to a superkey preserves uniqueness. Therefore A is incorrect. NULL in the set expression is understood as empty intersection, not SQL NULL.

A candidate key must uniquely identify rows and be minimal for that purpose. A unique account number uniquely identifies a bank account, but the table stores students: joint holders can legitimately repeat the account number across student rows. Conversely, unique registration numbers identify students directly. In D, the extra UID attribute cannot create a collision between rows already distinguished by S; minimality may be lost, but superkey status is preserved.

Original paper, page 4 · Answer key