Question: Please do this in sql. Thanks, lmk if you have any questions. An Instance of Boats An Instance of Sailors An Instance of Reserves Sailors

Please do this in sql. Thanks, lmk if you have any questions.An Instance of Boats An Instance of Sailors An Instance of ReservesPlease do this in sql. Thanks, lmk if you have any questions.

An Instance of Boats An Instance of Sailors An Instance of Reserves Sailors (sid: integer, sname: string, rating: integer, age: real) Boats(bid: integer, bname: string, color: string) Reserves (sid: integer, bid: integer, day: date) Find the names of sailors who have reserved a red or a green boat. Find the names of sailors who have reserved both a red and a green boat. Find the names of sailors who have reserved boat 103. Find the sailors with the highest rating. Find the names of sailors who have reserved all boats. \begin{tabular}{|l|l|l|l|} \hline sid & sname & rating & age \\ \hline \hline 22 & Dustin & 7 & 45.0 \\ \hline 29 & Brutus & 1 & 33.0 \\ \hline 31 & Lubber & 8 & 55.5 \\ \hline 32 & Andy & 8 & 25.5 \\ \hline 58 & Rusty & 10 & 35.0 \\ \hline 64 & Horatio & 7 & 35.0 \\ \hline 71 & Zorba & 10 & 16.0 \\ \hline 74 & Horatio & 9 & 35.0 \\ \hline 85 & Art & 3 & 25.5 \\ \hline 95 & Bob & 3 & 63.5 \\ \hline \end{tabular} Find the name and age of the oldest sailor. Find the average age of sailors for each rating level that has at least two sailors. For each red boat, find the number of reservations for this boat. Grade : 10 points: creating tables 10 points: populating data 80 points: Queries (10 each) \begin{tabular}{|l|l|l|} \hline sid & bid & day \\ \hline \hline 22 & 101 & 10/10/98 \\ \hline 22 & 102 & 10/10/98 \\ \hline 22 & 103 & 10/8/98 \\ \hline 22 & 104 & 10/7/98 \\ \hline 31 & 102 & 11/10/98 \\ \hline 31 & 103 & 11/6/98 \\ \hline 31 & 104 & 11/12/98 \\ \hline 64 & 101 & 9/5/98 \\ \hline 64 & 102 & 9/8/98 \\ \hline 74 & 103 & 9/8/98 \\ \hline \end{tabular} \begin{tabular}{|l|l|l|} \hline bid & bname & color \\ \hline \hline 101 & Interlake & blue \\ \hline 102 & Interlake & red \\ \hline 103 & Clipper & green \\ \hline 104 & Marine & red \\ \hline \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!