Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description: The car rental company allows customers to reserve rental cars over the internet, the company also allows customers to rent cars by calling up

Description:

The car rental company allows customers to reserve rental cars over the internet, the company also allows customers to rent cars by calling up car rental personnel or by walking up to the rental counter

The rental car company has a number of branches and each car is assigned to a home branch. Cars are always rented from the home branch but may be returned to a different branch. Cars are sometimes shifted from location to location i.e. the home branch location of a given car can be changed.

The company offers various types of cars and various price plans. Cars are grouped into the following classes: Subcompact, Compact, Midsized, Full sized, Luxury. Pricing varies by class of car, duration of rental. The company periodically offers special deals, e.g. one week rental of midsized car for $150. The company also offers discounts for organizational memberships, e.g. AAA, AARP. There is a separate set of fees when a car is not returned to the cars home branch this fee will depend on the identity of the home branch and the branch to which the car is returned, e.g. the fee might depend on the distance between the home branch and the return location.

We assume that a customer must register before he or she rents a car. Once the customer is registered, the registration data stays in the system.

Provide:

2. Provide DDL including: (50 points) CREATE tables. (25 points

) Populate (INSERT Statements) tables with some data. (10 points)

Construct the following queries: (15 points)

A) What compact cars are available at a particular (pick any) branch?

B) Show all cars available, sizes, location to pick. Group by sizes, and location.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions