GATE Computer Science (CS) 2019 Solved Papers

© examsiri.com
Question : 65 of 65
 
Marks: +1, -0
Consider the following relations P(X,Y,Z),Q(X,Y,T) and R(Y,V).
P
XYZ
X1Y1Z1
X1Y1Z2
X2Y2Z2
X2Y4Z4

Q
XYT
X2Y12
X1Y25
X1Y16
X3Y31

R
YV
Y1V1
Y3V2
Y2V3
Y2V2
How many tuples will be returned by the following relational algebra query?
Πx(σ(P,Y=R.Y∧R.V=v2)(P×R))−Πx(σ(Q,Y=R.Y∧Q.T>2)(Q×R))
__________.
  • Your Answer:
Go to Question: