CS FundamentalsModerateProduct placement · DBMS interview

R is decomposed into R1 and R2. Which condition guarantees the decomposition is lossless?

  1. A. R1 ∪ R2 = R and both are in BCNF
  2. B. (R1 ∩ R2) → R1 or (R1 ∩ R2) → R2 is in F⁺
  3. C. R1 ∩ R2 is non-empty
  4. D. (R1 ∩ R2) → R1 and (R1 ∩ R2) → R2 are both in F⁺

Correct answer: B. (R1 ∩ R2) → R1 or (R1 ∩ R2) → R2 is in F⁺

A binary decomposition is lossless exactly when the common attributes form a superkey of at least one side. A non-empty intersection is not enough, and requiring both sides is stronger than needed.

More DBMS and SQL questions

Exams that ask this topic