GATE CS 2022 | Question 25

Databases › Relational Algebra & TRC · MSQ · 1 mark · Answer: A, B

  1. Question 25Databasesmsq1 mark
    Relations Employee(eId,Name), Brand(bId,bName), Own(eId,bId). Which relational algebra expression returns the set of eIds who own ALL the brands?
    • A.
      ✓
    • B.
      ✓
    • C.
    • D.

    Answer: A, B

    Solution

    Answer: (A) and (B) "Owns all brands" is relational division. (A) expresses it directly: , projected on . (B) is the standard "division via difference" formulation: , which returns exactly the employees linked to every brand. Both are correct.

More GATE PYQ on Relational Algebra & TRC

All GATE CS Databases PYQ →

Attempt GATE CS 2022 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →