Question: Section 2: Structured Query Language (15 Marks) Given a boat reservation database schema as defined below. Captain (CID, CaptName, CaptRating, Captage) Boat (BoatID, BoatName, BoatColor)

Section 2: Structured Query Language (15 Marks) Given a boat reservation database schema as defined below. Captain (CID, CaptName, CaptRating, Captage) Boat (BoatID, BoatName, BoatColor) Reservation (CID, BoatID, Date, Purpose) 1. 2. 3. Find the names and ages of all captains. [2 marks] Find all captains with ratings above 7. [2 marks] Find the names of Captains who have reserved boat number 110. [3 marks] Calculate the total of reservations of Red boats. [3 marks] Find the names of Captains who have reserved at least one boat. [3 marks] Find the ages of Captains whose name begins with a B. [2 marks] 4. 5. 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
