Home » Database » Database miscellaneous » Question

Database miscellaneous

  1. Suppose R1 (A, B) and R2 (C, D) are two relation schemas. let r1 and r2 be the corresponding relation instances. B is a foreign key that refers to C in R2 . If data in r1 and r2 satisfy referential integrity constraints, which of the following is always true?
    1. ΠB(r1) - ΠB(r2) = ∅
    2. ΠC(r2) - ΠB(r1) = ∅
    3. ΠB(r1) - ΠB(r2)
    4. ΠB(r1) - ΠB(r2) ≠ ∅
Correct Option: A

B is a foreign key in r1 that refers to C in r2 . r1 and r2 satisfy referential integrity constraints. So every value that exists in column B of r1 must also exist in column C of r2 .



Your comments will be displayed only after manual approval.