Candidate-key

Question 1

Consider a relational table with a single record for each registered student with the following attributes.

    1. Registration_Num: Unique registration number of each registered student
    2. UID: Unique identity number, unique at the national level for each citizen
    3. BankAccount_Num: Unique account number at the bank. A student can have multiple accounts or join accounts. This attribute stores the primary account number.
    4. Name: Name of the student
    5. Hostel_Room: Room number of the hostel

Which one of the following option 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 such that S∩UID is NULL then S∪UID is also a superkey
Question 1 Explanation: 
In case two students hold joint account then Bank Account_Num will not uniquely determine other attributes.
Question 2

Given the STUDENTS relation as shown below.

For (StudentName, StudentAge) to be the key for this instance, the value X should not be equal to

A
19
B
20
C
21
D
22
Question 2 Explanation: 
There is already one entry with StudentName as “Shankar” and Age as 19. So, X value should not be 19.
There are 2 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access