Discussion :: SQL Basics
- Which of the following query finds the total rating of the sailors who have reserved boat "103"?
A.
SELECT SUM(s.rating) FROM sailors s, reserves r AND r.bid = 103; |
B.
SELECT s.rating FROM sailors s, reserves r WHERE s.sid = r.sid AND r.bid = 103 |
C.
c) SELECT COUNT(s.rating) FROM sailors s, reserves r WHERE s.sid = r.sid AND r.bid = 103 |
D.
SELECT SUM(s.rating) FROM sailors s, reserves r WHERE s.sid = r.sid AND r.bid = 103 |
Answer : Option D
Explanation :
Explanation Not Provided
Be The First To Comment