Home » Database » Database miscellaneous » Question

Database miscellaneous

  1. Let r be a rational instance with schema R = (A, B, C, D). We define r1 = ΠA, B, C(r) and r2 = ΠA, D(r). Let s = r1 * r2 where * denotes natural join. Given that the decomposition of r into r1 and r2 is lossy, which one of the following is true?
    1. s ⊂ r
    2. r ∪ s = r
    3. r ⊂ s
    4. r * s = s
Correct Option: C

R = (A, B, C, D)
r1 = ΠA , B , C (R) and r2 = ΠA , D (r)
s = r1 * r2
The tuples in s are more than that of r. Also, s consists of all the tuples of r along with other tuples. Therefore, the most appropriate relation is r ⊂ s .



Your comments will be displayed only after manual approval.