Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using the Alexamara database (create it using the source command), answer the fo

ID: 3732935 • Letter: U

Question

Using the Alexamara database (create it using the source command), answer the following questions. Make sure you include documentation!

1.List all owner names last, first and the name and type of their boat and in alphabetic order of last name

2.List all of the owners who have more than one boat, and how many boats they own.

3.For each service request, list the Description of the request as well as the Owner last name.

4.For each service category list the Category Description and how many service requests there are for each category.

5.List all of the owners (name, city, and state) and the Name of the marina where they keep their boat, in alphabetic order of city and within city of last name.

6. What is the total rental fee amount for each Marina in the database?

7.For each service request list the estimated hours, spent hours and the difference. Just list the ServiceId and the hours information. All the columns should be renamed.

8.List the last name of the owners (and their boat's name) who own a boat that is 30 feet long or shorter.

9.For each boat, list the name and next service date

10.List each boat name, the owner's last name, the slip number and Marina name in alphabetic order of boat name within the alphabetic order of the marina name

I just need help with the commands to use as a reference.

Explanation / Answer

1) select Owner.LastName,Owner.FirstName,
MarinaSlip.BoatName,MarinaSlip.BoatType
from MarinaSlip
inner join Owner
on MarinaSlip.OwnerNum=Owner.OwnerNum
order by LastName;

3) select Owner.LastName,
ServiceRequest.Description
from ServiceRequest,MarinaSlip
inner join Owner
on (ServiceRequest.SlipID=MarinaSlip.SlipID) and (MarinaSlip.OwnerNum=Owner.OwnerNum);

6) SELECT SUM(RentalFee)
FROM MarinaSlip;

8) select Owner.LastName,
MarinaSlip.BoatName
from MarinaSlip
inner join Owner
on MarinaSlip.Length<=30;

9) select MarinaSlip.BoatName,ServiceRequest.NextServiceDate
from ServiceRequest
inner join MarinaSlip
on (ServiceRequest.SlipID=MarinaSlip.SlipID);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote