CS FundamentalsHardGATE CS · DBMS

Which expression is equivalent to R ÷ S, where R(A, B) and S(B)?

  1. A. π_A(R) − π_A(R − (π_A(R) × S))
  2. B. π_A(R ⋈ S)
  3. C. π_A(R × S) − π_A(R)
  4. D. π_A(R) − π_A((π_A(R) × S) − R)

Correct answer: D. π_A(R) − π_A((π_A(R) × S) − R)

π_A(R) × S lists every pair each A value would need; subtracting R leaves the missing pairs, and their A values are exactly those that fail; removing them from π_A(R) gives the quotient.

More DBMS and SQL questions

Exams that ask this topic