GATEverse Practice, past papers & mock tests
GATE 2026 · session-8
Database Management and WarehousingRelational AlgebramediumMCQ2 marks
Consider the given relations \(X\), \(Y\) and \(Z\). The relation \(X\) has three columns P, Q and R. The relation \(Y\) has three columns P, Q and S. The relation \(Z\) has two columns P and T. Relation X:
PQR
P1Q1R1
P2Q2R2
P3Q3R2
Relation Y:
PQS
P1Q12
P1Q25
P2Q16
P3Q31
Relation Z:
PT
P1T1
P3T2
P4T3
P4NULL
Consider the relational algebra expression \[ \Pi_{P,R,S}\Big[\big(\sigma_{(Q=Q3 \vee R=R2)}[X \Join Y]\big) \Join \big(\sigma_{(S>1)}[Y \Join Z]\big)\Big] \] where \(\Join\) denotes natural join operation. Which of the following options is the correct output for the given expression?
Save your progress

Related Database Management and Warehousing PYQs