CS FundamentalsModerateGATE CS

R(A, B, C) is decomposed into R1(A, B) and R2(B, C). Which condition is necessary and sufficient (under FDs only) for the decomposition to be lossless?

  1. A. B → A or B → C holds
  2. B. A → B and B → C both hold
  3. C. B is a candidate key of R
  4. D. A → C holds

Correct answer: A. B → A or B → C holds

A binary decomposition is lossless exactly when the common attributes (B) functionally determine all of R1 or all of R2, i.e. B → A or B → C. B need not be a key of R, and A → B with B → C is sufficient but not necessary.

More DBMS and SQL questions

Exams that ask this topic