CS FundamentalsHardTCS NQT · Infosys pattern

Decomposing R(A, B, C) with FDs A → B and B → C into BCNF can require R1(A, B) and R2(B, C). Is this decomposition dependency-preserving?

  1. A. Yes; A → B is checkable within R1 alone, and B → C is checkable within R2 alone, so both original FDs are directly preserved
  2. B. No; B → C cannot be checked without joining R1 and R2 back together
  3. C. No decomposition of this relation can ever be lossless
  4. D. It depends on which attribute is chosen as the primary key

Correct answer: A. Yes; A → B is checkable within R1 alone, and B → C is checkable within R2 alone, so both original FDs are directly preserved

R1(A,B) contains exactly the attributes of A → B, so that FD can be checked by itself within R1; R2(B,C) likewise directly contains B → C. Since both original FDs individually 'fit' inside one of the two decomposed relations, this particular decomposition is both lossless (B is a key of R2, satisfying the lossless-join test) and dependency-preserving.

More DBMS and SQL questions

Exams that ask this topic