534 views
1 votes
1 votes

In the following expressions of relational algebra, the relation R has schema R(a,b)

Q1:\Pi _{a}(R)\times \Pi _{b}(R)

\dpi{120} \bg_white \dpi{120} \bg_white Q2:\Pi _{a,d}((R)\underset{_{R.b\neq S.c} }{\bowtie }\rho _{ _{s(c,d)}}(R))

(A) Q1 and Q2 produce the same answer

(B) The answer to Q1 is always contained in the answer Q2

(C) The answer to Q2 is always contained in the answer Q1

(D) Q1 and Q2 produce different answers

2 Answers

0 votes
0 votes
The relation has schema where the columns are 'a' and 'b'. From where did 'c' and 'd' come from ?

Related questions

2 votes
2 votes
2 answers
1
Pranabesh Ghosh 1 asked Sep 19, 2016
466 views
Which of the following Queries might produce different results when evaluated using set semantics and multiset semantics, even if the relations R and S are themselves set...