Question: Please help with the following database question Q.4 Consider the following schema for a car rental database. Customers (CustID, LastName, FirstName) Cars (CarID.CarMake) Orders (OrderID,CarID,

Please help with the following database question

Please help with the following database question Q.4 Consider the following schema

Q.4 Consider the following schema for a car rental database. Customers (CustID, LastName, FirstName) Cars (CarID.CarMake) Orders (OrderID,CarID, CustID, NrOfReqs) Rentals (CustID.CarID,CheckoutDate.Duration) Write SQL statements for the following queries regarding the car database: a) Find the customers who have rented cars for 5 days or more (list the last names) b) Find out the make of the cars for which a total of at least 10 requests have been made. c) Find the average rental duration for each customer (report the result using last names) d) Find the ID and make of the cars that have been rented for at least 1 day and have not been ordered by customer with ID 111

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!