Вы находитесь на странице: 1из 3

KINGDOM OF SAUDI ARABIA

AL-IMAM MUHAMMAD BIN SAUD ‫المملكة العربية السعودية‬


ISLAMIC UNIVERSITY ‫جامعة اإلمام محمد بن سعود اإلسالمية‬
COLLEGE OF COMPUTER AND INFORMATION ‫كلية علوم الحاسب و المعلومات‬
SCIENCES
1430/1431 Term 2

DATABASE PROJECT
Department: Computer Science Instructor: Dr. Mohamed-Foued Sriti
Course Number: CS320 Course Title: Introduction to Databases
Sections: 171, 172, 173 Date: April 25, 2010

Distribution date: 11/05/1431


Due date: 25/05/1431
INSTRUCTIONS
• Students may work in groups of minimum 3 students and maximum 5 students
• Students should be from the same section
• The cover page (Project-Coverpage.doc) with student IDs, names, and section should
be returned by Monday 12/05/1431 to mfsriti.ccis@gmail.com
• 2 files to be returned: 1 word file (or PDF) for the report and 1 Access 2003 file
• The project must be returned by Sunday 25/05/1431 (09/05/2010) by email:

To : mfsriti.ccis@gmail.com
Subject: project : <group number>
Body: student names, sections and numbers
Attachments: access file + report
• Get the project files (Project.pdf and Project-Coverpage.doc) from shared folder or
from http://sites.google.com/site/cs320imamu/project

• Access 2003 help: http://www.teacherclick.com/access2003

• SQL help: http://www.w3schools.com/sql

Page 1 of 3
TRAVIS COMPANY DATABASE
The database that you are to design in this project is for Travis Company. The main
function of Travis Company is to rent vehicles (Cars and Trucks) to its customers. The
company has a number of branches in a variety of locations and cities. Each branch
maintains a number of vehicles (vehicle license, year and odometer are recorded). There
are different car types (e.g. Compact, Economy, Luxury, etc.) and different truck types
(e.g. 20-foot, 16-foot, 10-foot, Box Trucks, etc).
Each vehicle type has a name (see examples above), different characteristics, different
rates by hour, by day and by week, and different rates per extra kilometer, and different
insurance coverage rates (by hour, by day and by week).
Travis keeps a list of all their customers. When a customer rents a vehicle at the first
time, the company saves the customer name, address, phone number and driver license
number. The company also keeps a list of the Travis Club members. To become a Travis
Club member, a customer should fill in an application and pay the annual fee. A club
member has a member ID and can gain bonus points (1 point for every 5 Riyals he
spends).
A customer can make a reservation of vehicle. He provides the location (branch), the type
of the vehicle and when (date and time) he picks up the vehicle and when (date and time)
he returns it. A confirmation number related to the reservation is generated automatically.
To rent a vehicle, a customer should sign a rental contract (has a unique rent ID). This
contract will contain the same information as the reservation (rental date and return date).
If a reservation is made by the customer, the rental contract will be linked to this
reservation. The customer can choose to buy insurance for the car for the entire period of
the rental or none of the days. To complete the rental contract, a customer has to provide
the credit card information (card number and expiry date). The start odometer is also
recorded within the contract.
When a vehicle is returned by a customer the contract will be updated to record the return
date and time, and the return odometer. The cost will be automatically calculated and
added to the contract with the payment method (the customer can use credit card or cash
to pay its bill).

1. Entity-Relationship model
Draw an ER diagram for the Travis Company Database. Specify key attributes of each
entity type, and constraints on each relationship type (cardinalities and participation
constraints). Note any unspecified requirements, and make appropriate assumptions to
make the specification complete.

2. Relational model
Give a Relational model for Travis Company Database by applying the ER-to-Relational
Mapping Algorithm on the resulting ER diagram.

Page 2 of 3
3. Database definition
Implement the Travis Company Database on MS Access 2003 conforms to the resulting
Relational model and fill some sample data.

4. Queries
Produce the following queries using Access query (for functions see the help file:
functions-count-example.jpg):
• Q1: Show all available vehicles between two dates for a specified category.
• Q2: For a given customer, show the amount of the money paid between tow given
dates.
• Q3: Show all canceled reservations (that haven’t causes any rental contract). For
each reservation, select the related costumer names.
• Q4: For each branch, show how many vehicles rented at a given day.
• Q5: List all the vehicle type names for vehicle returned at a given day and the
number of vehicles by type. We need only to visualize types that have more than
2 returned vehicles.

If the queries are complicated you can use SQL statement in Access (see the help file:
SQLinACCESS.pdf)

REPORT CONTENT
• Report content should be in only one word (or PDF) file.
• Write a report for Travis Company Database project that contains:
o A Cover page (Project-Coverpage.doc)
o The ER diagram
o The Relational Model diagram
o The Access Data Model diagram (relationship view)
o The SQL queries: should work in Access with a sample data

Page 3 of 3

Вам также может понравиться