CS FundamentalsHardGATE CS · PSU (ISRO/BARC)

R(A, B) = {(3, 2), (5, 2), (8, 1), (11, 1), (14, 2)}. What does π_A(R) − π_{R1.A}(σ_{R1.A > R2.A}(ρ_{R1}(R) × ρ_{R2}(R))) return?

  1. A. {14}
  2. B. {3, 5, 8, 11}
  3. C. {3}
  4. D. {5, 8, 11, 14}

Correct answer: C. {3}

The subtracted part collects every A value that is larger than some other A value; what remains is the value with no smaller value, i.e. the minimum, 3.

More DBMS and SQL questions

Exams that ask this topic