1.

Consider the schemaSailors(sid, sname, rating, age) with the following dataSidSnameRatingage22Dustin74529Borg13331Pathy85532Robert82558Raghu101764Herald73571Vishnu101674King93585Archer32684Bob36496Flinch317For the querySELECT S.rating, AVG(S.age) AS avgage FROM Sailors SWhere S.age >= 18GROUP BY S.ratingHAVING 1 < (SELECT COUNT(*) FROM Sailors S2 where S.rating = S2.rating)The number of rows returned is

A. 6
B. 5
C. 4
D. 3
Answer» E.


Discussion

No Comment Found

Related MCQs