Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer the following SQL questions using the information given below: 1. What is the average rating of sailors? 2. List the names, the date
Please answer the following SQL questions using the information given below:
1. What is the average rating of sailors?
2. List the names, the date of birth of sailors whose rating is below the average rating.
Context: At a Sailor's Club, a sailor can reserve many boats, and a boat can be reserved by many sailors. However, in every day a boat carnot be reserved more than once, and a sailor carnot have more than one reservation. A sailor may own one boat in the marina BOAT Table Primary Key: B ID Foreign Key:kedD 101 102 103 104 ed pper SAILOR Table Primary Key: S ID Foreign Key: None S ID (B) S-DOB (Date) 10/18/1973 2/22/1968 /31/1955 814/1994 3V0S/1990 811/1988 12/171970 3/08/1965 4/01/1981 11/11/1968 10 RESERVE Table Primary Key: S ID, B ID&Bdate Foreign Key: SID(references the SAILOR table) B ID (references the BOAT table) S ID B 101 102 103 104 102 103 104 101 102 102 ID R.Rate (Datel|&Duration(B) 0/1018 10V8/18 1/10/18 11/6/18 101218 10V5/18 11/8/18
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started