Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Database Management Systems 13. Which of the following query finds the total rating of the sailors who have reserved boat 102? 1) SELECT SUM(s.rating) FROM

image text in transcribedDatabase Management Systems

13. Which of the following query finds the total rating of the sailors who have reserved boat "102"? 1) SELECT SUM(s.rating) FROM sailors s, reserves r AND r.bid = 102; II) SELECT s.rating FROM sailors s, reserves r WHERE s.sid = r.sid AND r.bid = 102 III) SELECT COUNT(s.rating) FROM sailors s, reserves r WHERE s.sid r.sid AND r.bid = 102 IV) SELECT SUM(s.rating) FROM sailors s, reserves r WHERE s.sid =r.sid AND r.bid = 102 You can also see the options in the below figure rating 8 3 3 1 Sailors sid sname 32 Andy 85 Art 95 Bob 29 Brutus 22 Dustin 64 Horatio 74 Horatio 31 Lubber 58 Rusty 71 Zorba age 25.5 25.5 63.5 33 45 35 Reserves sid bid 22 101 22 102 22 103 22 104 31 102 31 103 31 104 64 101 64 102 74 103 77198 day 2021-10-10 2021-10-10 2021-10-8 2021-10-7 2021-11-10 2021-11-6 2021-11-12 2021-9-5 2021-9-8 2021-9-8 35 55.5 10 35 16 10 Boats bid 101 102 103 104 bname Interlake Interlake Clipper Marine color Blue Red Green Red 1) SELECT SUM(s.rating) FROM sailors s, reserves r AND r.bid = 102 11) SELECT s.rating FROM sailors s, reserves r WHERE s.sid = r.sid AND r.bid = 102 III) SELECT COUNT(s.rating) FROM sailors , reserves r WHERE s.sid =r.sid AND r.bid = 102 IV) SELECT SUM(s.rating) FROM sailors s, reserves r WHERE s.sid =r.sid AND r.bid = 102 a) O IV b) O II c) O III d) 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions