Question: Write and run the following SQL queries. Do not show duplicates: 1. Print the names of sailors who have reserved at least two boats 2.

 Write and run the following SQL queries. Do not show duplicates:

Write and run the following SQL queries. Do not show duplicates:

1. Print the names of sailors who have reserved at least two boats

2. Print the names of sailors whose rating is within (inclusive) 5 and 8 and have reserved more than two boats

3. Find the average age of sailors who have a rating greater than 7 and have reserved a boat named Clipper or Interlake

4. Find the age of the oldest sailor for each rating level that has reserved a red boat

5. Find the sailors whose rating is worse than some sailor named Andy

Sailors(sid: integer, sname: string, rating: integer, age: real) Boats(bid: integer, bname: string, color: string) Reserves(sid: integer, bid: integer, day: date)

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!