The GATE Grind

GATE 2011 CS (CS1) – Question 22

Databases · Integrity Constraints and Normal Forms · 1 mark · Multiple choice

A student table has one record per student: Registration_Num unique per student; UID unique nationally per citizen; BankAccount_Num is the primary bank account (a student may have several or joint accounts); Name; Hostel_Room. Which is incorrect?

  1. BankAccount_Num is a candidate key
  2. Registration_Num can be a primary key
  3. UID is a candidate key if all students are from the same country
  4. If S is a superkey, S∪UID is also a superkey

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (A) BankAccount_Num is a candidate key

Explanation

A joint bank account can be shared by students, so primary account number need not uniquely identify a student and is not guaranteed a candidate key, A. Registration is unique; nationally unique UID works under the same-country premise; adding an attribute to a superkey preserves uniqueness.

More Integrity Constraints and Normal Forms questions

All Integrity Constraints and Normal Forms questions →