You are not logged in.

#1 2015-09-18 06:39:34

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

SQL Total Rating:

http://interviewquestionsanswers.org/quiz/Database http://interviewquestionsanswers.org/qu … L-Database

Question:
Which of the following query finds the total rating of the sailors who have reserved boat "103"?

Option A):
SELECT s.rating FROM sailors s, reserves r WHERE s.sid = r.sid AND r.bid = 103
Option B):
SELECT SUM(s.rating) FROM sailors s, reserves r WHERE s.sid = r.sid AND r.bid = 103
Option C):
SELECT COUNT(s.rating) FROM sailors s, reserves r WHERE s.sid = r.sid AND r.bid = 103

Correct Answer is Option B):
SELECT SUM(s.rating) FROM sailors s, reserves r WHERE s.sid = r.sid AND r.bid = 103


Failure is the first step towards seccess.

2015-09-18 06:39:34

Advertisement
Ads By Google

Re: SQL Total Rating:



Board footer