Relational Schema · Databases
18 questions · asked in 13 of 27 years (2000–2026)
MCQ 10 · MSQ 3 · NAT 51-mark 13 · 2-mark 5
2000Questions per year2026
Questions 11–15 of 18
Consider the relation scheme R = (E, F, G, H, I, J, K, L, M, N) and the set of functional dependencies
{{E,F}{G}, {F}{I,J}, {E,H}{K,L}, {K}{M}, {L}{N} } on R. What is the key for R?
{{E,F}{G}, {F}{I,J}, {E,H}{K,L}, {K}{M}, {L}{N} } on R. What is the key for R?
Answer: (B)
The attributes E, F and H never appear on the right side of any dependency. So no dependency can give them, and every key must contain E, F and H.
Take the closure . Start with :
- adds G.
- adds I and J.
- adds K and L.
- adds M.
- adds N.
So , which is all ten attributes. So {E, F, H} is a key, and it is minimal because every key must contain all three of E, F and H.
{E, F} and {E} leave out H, so they cannot be keys. {E, F, H, K, L} is a superkey but not minimal.
Answer: (B)
Take the closure . Start with :
- adds G.
- adds I and J.
- adds K and L.
- adds M.
- adds N.
So , which is all ten attributes. So {E, F, H} is a key, and it is minimal because every key must contain all three of E, F and H.
{E, F} and {E} leave out H, so they cannot be keys. {E, F, H, K, L} is a superkey but not minimal.
Answer: (B)
The maximum number of super keys for the relation schema R (E, F, G, H) with E as the key is __________.
Answer: 8
Every super key has to include E. Each of the other attributes F, G and H can be either in the key or left out.
Number of super keys:
Answer: 8
Number of super keys:
Answer: 8
Given an instance of the STUDENTS relation as shown below
For (StudentName, StudentAge) to be a key for this instance, the value x should NOT be equal to_______.
For (StudentName, StudentAge) to be a key for this instance, the value x should NOT be equal to_______.
Answer: 19
The table already has a row with (Shankar, 19), which belongs to StudentID 7853.
Suppose x = 19. Then row 2345 would also hold (Shankar, 19). The pair (StudentName, StudentAge) would then repeat, so it could not be a key.
Answer: 19
Suppose x = 19. Then row 2345 would also hold (Shankar, 19). The pair (StudentName, StudentAge) would then repeat, so it could not be a key.
Answer: 19
Consider a relational table with a single record for each registered student with the following attributes.
1. Registration_Number: Unique registration number for each registered student
2. UID: Unique Identity number, unique at the national level for each citizen
3. BankAccount_Number: Unique account number at the bank. A student can have multiple accounts or joint accounts. This attributes stores the primary account number
4. Name: Name of the Student
5. Hostel_Room: Room number of the hostel
Which of the following options is INCORRECT?
1. Registration_Number: Unique registration number for each registered student
2. UID: Unique Identity number, unique at the national level for each citizen
3. BankAccount_Number: Unique account number at the bank. A student can have multiple accounts or joint accounts. This attributes stores the primary account number
4. Name: Name of the Student
5. Hostel_Room: Room number of the hostel
Which of the following options is INCORRECT?
Answer: (A)
A joint account can be the primary account of more than one student. So BankAccount_Number need not be unique, and it is not a candidate key. Option (A) is INCORRECT.
- (B) Registration_Number is unique, so it can be a primary key.
- (C) UID is unique at the national level, so if all students are from the same country it is unique among them and is a candidate key.
- (D) If you add attributes to a super key, it stays a super key. So is a super key.
Answer: (A)
- (B) Registration_Number is unique, so it can be a primary key.
- (C) UID is unique at the national level, so if all students are from the same country it is unique among them and is a candidate key.
- (D) If you add attributes to a super key, it stays a super key. So is a super key.
Answer: (A)
The following functional dependencies are given:
Which one of the following options is false?
Which one of the following options is false?
Answer: (C)
Find the closure of each side with the given FDs: .
- (A) : adds G, adds A, adds E, adds D. Result . True.
- (B) : adds A, adds C and D. Result . True.
- (D) : adds C and D, adds G. Result . True.
- (C) : adds D, adds E, and adds nothing new. Result . C and G cannot be reached: C is only given by , which needs B, and G is only given by , which needs C. So , and (C) is false.
Answer: (C)
- (A) : adds G, adds A, adds E, adds D. Result . True.
- (B) : adds A, adds C and D. Result . True.
- (D) : adds C and D, adds G. Result . True.
- (C) : adds D, adds E, and adds nothing new. Result . C and G cannot be reached: C is only given by , which needs B, and G is only given by , which needs C. So , and (C) is false.
Answer: (C)
Keep practising
Topics in Databases
ER Model
Relational SchemaYou are here
Relational AlgebraTuple CalculusSQLIntegrity ConstraintsNormal FormFile SystemTransaction