GATE / CS ARCHIVE

GATE CSE 2019 / QUESTION 32

Testing a relational decomposition

Database Management Systems · Normalization & Decomposition · Full GATE CSE 2019 paper

GATE 2019, Q32 2 marks · MCQ
Report issue

Normalization & Decomposition

Question 32, GATE 2019: On X(P,Q,R,S), F={QR→S, R→P, S→Q}. Decompose X into Y(P,R) and Z(Q,R,S). Test I: both components are BCNF; II: the decomposition is lossless and dependency preserving. Options A both, B I only, C II only, D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Step through it (3 parts)

1. BCNF requires the determinant of every nontrivial functional dependency to be a superkey. In Y, R→P gives R+={R,P}, so R is a key and Y is in BCNF.
2. In Z, S→Q still holds. But S+ within Z is only {S,Q}; no dependency derives R. Thus S is not a superkey and this nontrivial dependency violates BCNF. Statement I is false.
3. Dependency preservation asks whether enforcing dependencies locally suffices for the original F. R→P can be checked in Y; QR→S and S→Q can both be checked in Z. All original dependencies survive, so preservation holds.
4. For a binary decomposition, losslessness follows if the intersection functionally determines either component. Y∩Z={R}, and R→PR means the intersection determines Y. Joining valid projections therefore introduces no spurious tuples.
5. Both parts of II hold, so II alone is true: C. Losslessness and dependency preservation are distinct tests; neither implies that every resulting relation must satisfy BCNF.

Original paper, page 11 · Answer key