GATE DA 2026 · Question 42 · Database Management and Warehousing · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

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.
X
Y
Z
Consider the relational algebra expression
Π_(PRS)[(σ_((Q = Q3 ∨ R = R2))[X Y]) (σ_((S > 1))[Y Z])]
where denotes natural join operation.
Which of the following options is the correct output for the given expression?

PQR
P1Q1R1
P2Q2R2
P3Q3R2
PQS
P1Q12
P1Q25
P2Q16
P3Q31
PT
P1T1
P3T2
P4T3
P4NULL
  1. (A) Two rows (P1, R1, 2) and (P1, R1, 5)
  2. (B) Three rows (P1, R1, 2), (P1, R1, 5) and (P2, R2, 6)
  3. (C) One row (P1, R1, 2)
  4. (D) Zero rows
Answer

Answer (D)

Answer from the official GATE DA 2026 answer key.

The step-by-step solution, where available, is part of GATE DA Pro. See what Pro includes