GATE DA 2026 Set 1 — Question 42
Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.MCQ+2 / -0.67MediumSelection & ProjectionRelational AlgebraDatabase Management & WarehousingJoin & Division
Database Management & Warehousing → Relational Algebra → Join & Division
Last updated
Question
Consider the given relations , and . The relation has three columns , and . The relation has three columns , and . The relation has two columns and .Relation X
Relation Y
Relation Z
Consider the relational algebra expressionwhere denotes natural join operation.Which of the following options is the correct output for the given expression?
| P | Q | R |
|---|---|---|
| P1 | Q1 | R1 |
| P2 | Q2 | R2 |
| P3 | Q3 | R2 |
| P | Q | S |
|---|---|---|
| P1 | Q1 | 2 |
| P1 | Q2 | 5 |
| P2 | Q1 | 6 |
| P3 | Q3 | 1 |
| P | T |
|---|---|
| P1 | T1 |
| P3 | T2 |
| P4 | T3 |
| P4 | NULL |
Correct answer
(D) Zero rows
Solution
Let's evaluate the expression step by step.Step 1: Evaluate Left Side
1. (Natural Join on ):
- (P1, Q1) matches: and
- (P2, Q2) in X, but Y has (P2, Q1). No match.
- (P3, Q3) matches: and
- Result of Join:
- Row : , . False.
- Row : (True). True.
1. (Natural Join on ):
- : has . has .
- Matches:
- : has . has no . No match.
- : has . has .
- Match:
- Result of Join:
- : . Keep.
- : . Keep.
- : . Drop.
- (Schema: P, Q, R, S)
- (Schema: P, Q, S, T)
- Natural Join on common attributes .
- Row in has . Rows in have .
- No intersection. The result is empty.
Continue learning with Success Tracker
A step still unclear? Work through it with support
Use Success Tracker to ask about the reasoning, then try another GATE DA question to check your understanding.
AI-powered practice· Unlimited practice on eligible plans
- PYQs with solutions
- Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
- Practice that adapts
- Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
- AI doubt support
- Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.
Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.
This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.
More questions on Relational Algebra
2026 Set 1 Q17 be a relational schema with functional dependency set…2026 Set 1 Q18Consider that the visualization of a 3-dimensional data cube is showing Sales Quantity for each…2026 Set 1 Q26Consider two relations r and s defined on the relational schemas R(A,B) and S(E,C), respectively. A…2026 Set 1 Q32In a relational database, a B+ Tree Index is to be constructed for a relation on a key field. In a…2026 Set 1 Q41Consider a B+ Tree where the maximum number of key values in each leaf node is 2 and the maximum…