Dbms Major 2016 (1)
Dbms Major 2016 (1)
OF PRINTED PAGES : 6]
(a) πA (r)
(b) σ B-17 (r)
(c) r x s
(d) πA,F ( σ C = D(r x s) )
7.
(a) Discuss the reasons for converting SQL queries into
relational algebra queries before optimization is done. (5)
T31:read(A);
read(B);
if A = 0thenB:= B+1
write(B).
T32: read(B);
read(A);
if B = 0thenA:= A+1
write(A).
(iv) Find the names of all employees who earn more than
every employee of Small Bank Corporation.