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 16–18 of 18
Consider a relation scheme R=(A,B,C,D,E,H) on which the following functional dependencies hold: {AB, BCD, EC, DA}. What are the candidate keys of R?
Answer: (D)
E and H never appear on the right side of any FD, so every candidate key must contain E and H. This rules out (A), (B) and (C): (A) and (B) leave out H, and (C) has BCH, which leaves out E.
Check : gives and nothing more. So EH is not a key and one more attribute is needed.
- : adds B, adds C, adds D. Result , all attributes.
- : adds C, adds D, adds A. All attributes.
- : adds A, adds B, adds C. All attributes.
Each of these is minimal, since EH alone is not a key. So the candidate keys are AEH, BEH and DEH.
Answer: (D)
Check : gives and nothing more. So EH is not a key and one more attribute is needed.
- : adds B, adds C, adds D. Result , all attributes.
- : adds C, adds D, adds A. All attributes.
- : adds A, adds B, adds C. All attributes.
Each of these is minimal, since EH alone is not a key. So the candidate keys are AEH, BEH and DEH.
Answer: (D)
From the following instance of relation schema R(A,B,C), we can conclude that :
Answer: (C)
An instance can only disprove a functional dependency. It can never prove one for the whole relation, because later tuples may break it.
In the instance, tuples and have the same but different values (1 and 0). So does not hold. This is certain.
Now the options. holds in this instance (every value has one value), but we cannot conclude it for the whole relation from one instance.
(A) and (B) claim as a conclusion, so they are not safe. (D) says does not determine , which is false for this instance. Only (C) is certain.
Answer: (C)
In the instance, tuples and have the same but different values (1 and 0). So does not hold. This is certain.
Now the options. holds in this instance (every value has one value), but we cannot conclude it for the whole relation from one instance.
(A) and (B) claim as a conclusion, so they are not safe. (D) says does not determine , which is false for this instance. Only (C) is certain.
Answer: (C)
Consider a schema R(A,B,C,D) and functional dependencies AB and CD. Then the decomposition of R into R1(AB) and R2(CD) is :
Answer: (C)
Lossless join: R1(AB) and R2(CD) have no common attribute, so is a Cartesian product. It gives extra tuples that were not in R, so the join is lossy.
Dependency preserving: has both attributes in R1, and has both attributes in R2. Both dependencies are kept in the decomposed relations, so it is dependency preserving.
Answer: (C)
Dependency preserving: has both attributes in R1, and has both attributes in R2. Both dependencies are kept in the decomposed relations, so it is dependency preserving.
Answer: (C)
Keep practising
Topics in Databases
ER Model
Relational SchemaYou are here
Relational AlgebraTuple CalculusSQLIntegrity ConstraintsNormal FormFile SystemTransaction