GATE CS 2022 · ER-Model

MSQ · 1 mark · Problem DBMS-RELM-0066

Consider the following three relations in a relational database. \(Employee(eId, Name), Brand (bId, bName), Own(eId ,bId)\) Which of the following relational algebra expressions return the set of \(eIds\) who own all the brands?
  1. A
    \(\Pi _{eId}(\Pi _{eId,bId}(Own)/\Pi _{bId}(Brand))\)
  2. B
    \(\Pi _{eId}(Own)-\Pi _{eId}\left ((\Pi _{eId}(Own) \times \Pi _{bId}(Brand) )-\Pi _{eId,bId}(Own) \right )\)
  3. C
    \(\Pi _{eId}(\Pi _{eId,bId}(Own)/\Pi _{bId}(Own))\)
  4. D
    \(\Pi _{eId}\left ((\Pi _{eId}(Own) \times \Pi _{bId}(Own) )/\Pi _{bId}(Brand) \right )\)

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionOfficial GATE Answer Key: A, B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/371921/Gate-cse-2022-question-15

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com