GATE Assistant

Past questions › Data Science and Artificial Intelligence › GATE 2026

GATE 2026 · DA · MCQ · 2 marks · Database Management and Warehousing › Relational Algebra & Tuple Calculus

GATE 2026 Data Science and Artificial Intelligence question: Consider the given relations X, Y and Z. The relation X has three columns P, Q and R.…

Consider the given relations , and . The relation has three columns , and . The relation has three columns , and . The relation has two columns and .

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

Consider the relational algebra expression

where denotes natural join operation.

Which of the following options is the correct output for the given expression?

  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

Show answer

Official answer: D

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion