• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

ISRO | ISRO CS 2017 | Question 11

Consider the schema Sailors(sid, sname, rating, age) with the following data

sidsnameratingage
22Dustin745
29Borg133
31Pathy855
32Robert825
58Raghu1017
64Herald735
71Vishnu1016
74King935
85Archer326
84Bob364
96Flinch317

For the query

SELECT S.rating, AVG(S.age) AS avgage FROM Sailors S
Where S.age >= 18
GROUP BY S.rating
HAVING 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

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments