CS FundamentalsHardGATE CS · DBMS

R(A, B) = {(1, 1), (1, 3), (3, 2), (4, 1), (4, 2), (4, 4)} and S(B, C) = {(1, 5), (1, 7), (3, 7), (4, 5)}. What is π_A(R) − π_A(R ⋈ S)?

  1. A. {3}
  2. B. {1, 4}
  3. C. {3, 4}
  4. D. ∅

Correct answer: A. {3}

This keeps A values ALL of whose tuples fail to join. An A value with at least one joining B is removed entirely, so the answer is {3}, not merely the A values of non-joining tuples.

More DBMS and SQL questions

Exams that ask this topic