GATE CSE 2022 Q25: Relational algebra for employees who own all brands
- Databases
- 1 mark
- MSQ
- No negative marking
Question
Consider the following three relations in a relational database.
, ,
Which of the following relational algebra expressions return the set of s who own all the brands?
Try it: multiple select: one or more correct options
Show answer and explanation
Answer: A, B (official GATE 2022 final answer key)
Concept used: "Owns all brands" is relational division by the set of all brand ids, which can also be written with product and difference.
First step: Check what each divisor is: all brands (from ) or only the brands someone owns (from ).
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2022 CS question paper and final answer key, organised by IIT Kharagpur. Question paper · Answer key
More Databases PYQs
- 2026 Session 1 · Q30Which functional dependency inferences always hold
- 2026 Session 1 · Q31Dependency-preserving decompositions for 1NF, 2NF, 3NF, BCNF
- 2026 Session 1 · Q43Relational algebra equivalent of a tuple calculus join query
- 2026 Session 1 · Q65Number of superkeys with candidate keys {A,B} and {A,C}
- 2026 Session 2 · Q15Match DBMS schema levels with what they describe
- 2026 Session 2 · Q20When two transactions do not conflict on a data item