1.

Consider the following relation schemaSailors(sid, sname, rating, age)Reserve(sid, bid, day)Boats(bid, bname, color)What is the equivalent of following relational algebra query in SQL query.πsname((σcolor= ‘red’Boats) ⨝ Reserves ⨝ Sailors)

A. SELECT S.sname, S.ratingFROM Sailors S, Reserves RWHERE S.sid = R.sid AND R.bid = B.bid AND B.color = ‘red’
B. SELECT S.snameFROM Sailors S, Reserves R, Boats BWHERE S.bid = B.bid AND B.color = ‘red’
C. SELECT S.snameFROM Sailors S, Reserves R, Boats BWHERE S.sid = R.sid AND B.color = ‘red’
D. SELECT S.snameFROM Sailors S, Reserves R, Boats BWHERE S.sid = R.sid AND R.bid = B.bid AND B.color = ‘red’
Answer» E.


Discussion

No Comment Found

Related MCQs