Home » Database » Database miscellaneous » Question

Database miscellaneous

  1. Consider a schema R(A, B, C, D) and functional dependencies A → B and C → D. Then the decomposition of R into R1 (AB) and R2 (CD) is
    1. dependency preserving and lossless join
    2. lossless join but not dependency preserving
    3. dependency preserving but not lossless join
    4. not dependency preserving and not lossless join
Correct Option: C

We need to check two paramenters for the solutions
1. Loseless join
2. Dependency preserving
1. Lossless join R1 (AB) ∧ R2 (CD) → R1 (AB)
Also, R1 (AB) ∧ R2 (CD) → R1 (CD)
But we know that
Functional dependencies A → B and C → D
Hence, the statement above is not possible. → R(ABCD) is not a lossless join.
2. Dependency preserving
Since, R1 (AB) ∨ R2 (CD) → R(ABCD) It is dependency preserving.



Your comments will be displayed only after manual approval.