CS FundamentalsHardGATE CS (PYQ pattern)

Tables ST(s, c) with rows (p,DB), (p,OS), (p,CN), (q,DB), (q,OS), (r,DB), (r,OS), (r,CN), (r,AI), (s,CN), (s,OS), (s,DB), (s,DB) and CR(c): DB, OS, CN. The relational-division result 'students who have taken every course in CR' is computed. Which students qualify?

  1. A. p, r, s
  2. B. p, r
  3. C. p, q, r
  4. D. p, s

Correct answer: A. p, r, s

p has all three; r has the three plus AI (extra courses do not disqualify); s has all three (DB twice is a duplicate); q misses CN.

More DBMS and SQL questions

Exams that ask this topic