GATE DA 2026 | Question 42
Database Management and Warehousing › Relational Algebra · MCQ · 2 marks · Answer: D
- Question 42Database Management and Warehousingmcq2 marksConsider the given relations , and . The relation has three columns , and . The relation has three columns , and . The relation has two columns and .
Consider the relational algebra expressionX Y Z P Q R P Q S P T P1 Q1 R1 P1 Q1 2 P1 T1 P2 Q2 R2 P1 Q2 5 P3 T2 P3 Q3 R2 P2 Q1 6 P4 T3 P3 Q3 1 P4 NULLwhere denotes natural join operation. Which of the following options is the correct output for the given expression?- A.Two rows (P1, R1, 2) and (P1, R1, 5)
- B.Three rows (P1, R1, 2), (P1, R1, 5) and (P2, R2, 6)
- C.One row (P1, R1, 2)
- D.Zero rows✓
Answer: D
Solution
Left part: joins on and gives and . The selection keeps only . Right part: joins on and gives , and . The selection keeps and . Final natural join: the two sides share . The left side has only and the right side has only , so nothing matches. The result is empty. Answer: (D) Zero rows. - A.
Attempt GATE DA 2026 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →