Molly Mackenzie Boat Marina
Page 2
Table 1: Rate Codes and Discounts
Rate Code Rate Description Percentage
D Daily 100.00%
HD Half Day 65.00%
SD Special Discount 25.00%
SM Six Months 85.00%
Y 12 Months 80.00%
W Weekend 90.00%
When a property is reserved, the customer places a deposit on the rental property. The deposit is applied to
the rental fees for the property or is forfeited if the customer cancels the reservation. Mr. Mackenzie is flexible
on the deposit amount. Mr. Mackenzie requires a minimum deposit from frequent customers, but does charge
a hefty deposit for new customers. When a customer picks up the watercraft or checks into a cabin, he is
required to pay the entire balance for the property, minus any deposit. If an advanced reservation was not
made, the customer pays the entire balance when he rents the property.
When a customer requests a particular property, Mr. Mackenzie or an employee checks to see if the property
is available for the dates requested by the customer. If the requested dates are available, reservation data are
captured on a reservation form. Based on the length of stay, Mr. Mackenzie determines which rate is
applicable. For a typical reservation, customer contact information (name, phone number, and mailing
address), reservation dates, property information (rental property number, description and rate), and payment
amount are recorded. When a reservation is made, the customer is given a reservation number. The
customer uses the reservation number if he needs to cancel the reservation or when he checks in. When the
customer returns the watercraft or checks out of the cabin, he stops by the office and is given an invoice
showing his rental transactions.
Storage Specifications
To build the marina database, you decide Customer, Rate, Property, Payment, and Reservation tables are
necessary. The Customer table stores basic customer information, such as customer identification number
(CID), last name, first name, street address, city, state, postcode, and phone number. As the customer
identification number is unique for each customer, it serves as the primary key for the Customer table. Table 2
shows the Customer table structure.
The Rate table stores information about the rate codes, rate descriptions, and discount percentages. As the
rate code is unique for each rate code, the Rate Code field serves as the primary key. The rate description
provides additional information about the rate code, such as daily, weekend, six-month, special discount, half
price, or twelve-month. Where applicable, the discount percentage is multiplied by the daily rate to provide a
reduced rate for the customer for a given rental property. Table 3 shows the Rate table structure.
The Property table stores information about each of the marina's rental properties. The property identification
number (PlD) is unique for each property. Therefore, the PlD serves as the primary key. The Property table
also includes rental price and description fields. The rental price field stores the daily rental price for the
property. The description field further clarifies the type of property. Table 4 shows the Property table structure.
The Payment table stores information about each payment made by a marina customer. The Payment table
includes PaymentlD, customer identification number (CID), PaymentDate, PaymentAmount, and Comment
fields. The PaymentlD field stores a unique value for each payment record; therefore, it serves as the primary
评论0