Filter by year

Relational Algebra questions

Q42

GATE DA 2026 DARelational Query LanguagesMCQ2 marks−2/3 if wrong

Report a problem with Q42

What is wrong?
Consider the given relations XX, YY and ZZ. The relation XX has three columns PP, QQ and RR. The relation YY has three columns PP, QQ and SS. The relation ZZ has two columns PP and TT.

XX
PPQQRR
P1Q1R1
P2Q2R2
P3Q3R2
YY
PPQQSS
P1Q12
P1Q25
P2Q16
P3Q31
ZZ
PPTT
P1T1
P3T2
P4T3
P4NULL
Consider the relational algebra expression
ΠPRS[(σ(Q=Q3∨R=R2)[X⋈Y])⋈(σ(S>1)[Y⋈Z])]\Pi_{PRS}[(\sigma_{(Q = Q3 \lor R = R2)}[X \bowtie Y]) \bowtie (\sigma_{(S > 1)}[Y \bowtie Z])]
where ⋈\bowtie denotes natural join operation.
Which of the following options is the correct output for the given expression?
Show answer without attempting

Loading the answer…

0/10 correct0 marks

Related topics in Relational Query Languages