CS FundamentalsVery hardProduct placement · DBMS interview

R(A, B, C, D) has FDs A → B, B → C, C → D and D → A. Every attribute is a candidate key. A designer still decomposes R into R1(A, B) and R2(B, C, D). Which statement is correct?

  1. A. Dependency preserving but lossy
  2. B. Lossless but not dependency preserving, because D → A crosses the parts
  3. C. Lossy, because A → B is lost
  4. D. Lossless and dependency preserving, and both parts are in BCNF

Correct answer: D. Lossless and dependency preserving, and both parts are in BCNF

R1 ∩ R2 = B is a key, so the join is lossless. A → B lies in R1 and B → C, C → D in R2; D → A follows from D → B (projected on R2) and B → A (projected on R1), so nothing is lost. Every attribute is a key of each part, so both are in BCNF.

More DBMS and SQL questions

Exams that ask this topic