-
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?
-
- ΠB(r1) - ΠB(r2) = ∅
- ΠC(r2) - ΠB(r1) = ∅
- ΠB(r1) - ΠB(r2)
- ΠB(r1) - ΠB(r2) ≠ ∅
- Π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 .