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?
Show answer
Official answer: D