336 views
0 votes
0 votes

Which of the following query transformations (i.e., replacing the l.h.s. expression by the r.h.s expression) is correct? R1, R2 and R3 are relations, C1 and C2 are selection conditions and A1 ,A2 and A3 are attributes of Relations

 

SHOULDN’T THE ANSWER BE (B)???

OPTION (D) IS FALSE ON THIS EXAMPLE:-

R1
A1 A2
1 2
1 3
2 4
2 5
3 8

 

R2
A1 A2
1 2
2 5
3 8

 

NOW OPTION D’s LHS GIVES $\phi$ WHEN I USE condition A1 as A1<3 and condition A2 as  A2<8 

whereas RHS gives me 

A1

1

1

2

2

hence option D is wrong?

 

 

Please log in or register to answer this question.

Related questions

0 votes
0 votes
2 answers
2
Gate Fever asked Nov 7, 2018
318 views
0 votes
0 votes
0 answers
3
Gate Fever asked Nov 7, 2018
344 views
SHOULDN'T THE ANSWER BE 792??
0 votes
0 votes
2 answers
4
Gate Fever asked Nov 7, 2018
290 views