Consider the given relations , and . The relation has three columns , and . The relation has three columns , and . The relation has two columns and .
Relation : (P1, Q1, R1), (P2, Q2, R2), (P3, Q3, R2).
Relation : (P1, Q1, 2), (P1, Q2, 5), (P2, Q1, 6), (P3, Q3, 1).
Relation : (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?
Tap to open full sizeFigure description
Three small tables side by side. X(P,Q,R): rows (P1,Q1,R1), (P2,Q2,R2), (P3,Q3,R2). Y(P,Q,S): rows (P1,Q1,2), (P1,Q2,5), (P2,Q1,6), (P3,Q3,1). Z(P,T): rows (P1,T1), (P3,T2), (P4,T3), (P4,NULL).
- (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