CS FundamentalsHardGATE CS · PSU (ISRO/BARC)

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

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

Correct answer: B. {14}

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

More DBMS and SQL questions

Exams that ask this topic