GATE DA 2026, Q.42: Output of a selection over two natural joins
The question
X(P, Q, R) = {(P1, Q1, R1), (P2, Q2, R2), (P3, Q3, R2)}. Y(P, Q, S) = {(P1, Q1, 2), (P1, Q2, 5), (P2, Q1, 6), (P3, Q3, 1)}. Z(P, T) = {(P1, T1), (P3, T2), (P4, T3), (P4, NULL)}. Evaluate π_{P,R,S}[(σ_{Q=Q3 ∨ R=R2}(X ⨝ Y)) ⨝ (σ_{S>1}(Y ⨝ Z))].
- (A) Two rows (P1, R1, 2) and (P1, R1, 5)
- (B) Three rows (P1, R1, 2), (P1, R1, 5), (P2, R2, 6)
- (C) One row (P1, R1, 2)
- (D) Zero rows
Checking your access…
The answer and full solution are in the GATE DA past-paper pack. All 195 questions from 2024, 2025 and 2026, each solved step by step and checked against the official key. ₹499, lifetime access.
What's in the pack · 60 questions are free to try.
Unlock this solution and every other question. ₹499, one payment, lifetime access.
Could not load the solution. Refresh the page, or email hello@gradientlab.dev.
Source: official GATE DA 2026 question paper and answer key (IIT Guwahati). The question is lightly reworded; every number and option is kept.