GATE CS 2012 · Question 43 · Databases · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Suppose R₁(A, B) and R₂(C, D) are two relation schemas. Let r₁ and r₂ be the corresponding relation instances. B is a foreign key that refers to C in R₂. If data in r₁ and r₂ satisfy referential integrity constraints, which of the following is ALWAYS TRUE ?

  1. (A) Π_B(r₁) - Π_C(r₂) = ∅
  2. (B) Π_C(r₂) - Π_B(r₁) = ∅
  3. (C) Π_B(r₁) = Π_C(r₂)
  4. (D) Π_B(r₁) - Π_C(r₂) ≠ ∅
Answer

Answer (A)

Answer from the official GATE CS 2012 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes