Consider a relational table with a single record for each registered student with the following attributes:
- Unique registration number for each registered student
- Unique identity number, unique at the national level for each citizen
- Unique account number at the bank. A student can have multiple accounts or joint accounts. This attribute stores the primary account number.
- Name of the student
- Room number of the hostel
Which of the following options is INCORRECT?
View worked solution
Answer: A
To determine which option is INCORRECT, let's analyze each statement based on the properties of the attributes in the relation:
-
Option B: can be a primary key
Since each student has a unique registration number and the table contains exactly one record per registered student, uniquely identifies each tuple. Thus, it is a candidate key and can be chosen as the primary key. This statement is correct. -
Option C: is a candidate key if all students are from the same country
is unique at the national level. If all students belong to the same country, every student will have a unique . Since there is a single record per student, uniquely identifies each record. Thus, it is a candidate key. This statement is correct. -
Option D: If is a super key such that is then is also a superkey
By definition, any superset of a super key is also a super key. Since is already a super key, adding any attribute(s) to it (including ) will result in a super key. This statement is correct. -
Option A: is a candidate key
The problem states that students can have joint accounts. If two different students share a joint bank account and both list it as their primary account, the value will be the same for both students. Since it is not guaranteed to be unique, cannot be a candidate key. This statement is incorrect.
Therefore, the incorrect option is A.
Free practice · Your answers on this page are not saved.
