King Abdulaziz University
Faculty of Computing and Information Technology - North Branch
Database I
PROJECT ASSIGNMENT 1-A SEMESTER 2 – 2013
Due Date
The assignment is due in Friday 5-4-2013 before midnight.Marks
The assignment is worth 8% of the total marks of this unit.Commets
- This is an individual assignment - State your assumptions if found.- Submit it to the email [email protected] using the format: Database1, student name, student ID, assignment 1
Project Name:
Design and Developing a Database for the hotel
Prepared BY: NAIF ALZAHRANI
1. System Scenario:
You are required to establish a database for a hotel which has a name. The hotel has many branches. We can identify each of the branches by knowing its address. Each branch allows the customer to make a booking trough an agency or by visiting the hotel branch reception. If the customer makes the booking via the reception, he will have a discount. Each agency has a unique name, website and several locations. The system will store data for every costumer such as ID, name, address, mobile number and email.
Each reservation or booking will be printed containing all the details regarding the costumer and the rented room or suite , these details will be the booking number, customer ID , room or suite number, date, check in time, check out time and the special price if found. One customer can make only one booking at a time.
There are two types of accommodations in the hotel “room and suite”, each one of them has a number, type, price, view, status (is it available or not) and has bed type.
In the reception there are employees to make the reservation for the guests. They are identified by numbers and the database will store details about them such as names, salaries, addresses and mobile numbers. Moreover, they work in shifts and each shift has a start time and an end time. In addition, there is a manager who is responsible for the employees for a specific branch.
The hotel provides room service which has a code to be recognized by the staff and it has a name and type. Each room service assigned to one or more employees. Furthermore, the hotel provide some special services (such as massage, organizing parties ... etc) , each one of these also has a code name and price.
The hotel also offers tours which have codes, names, prices and start and end times. The system will keep track of the date that a costumer booked a specific tour. The tours are only booked to the customers by the hotel employees.
Finally, each hotel branch is facilitated by a number of restaurants to allow the guests to enjoy the meals wheather in the restaurant itself or by delivering them to the rooms. Each restaurant has a name, telephone number and a menu left in each room so that the costumer can contact them and ask for the meal.
2. Task:
Design an ERD for the system representing the following:
- Entities: strong and weak - Relationships
- Binary and n-ry Relationships - Attributes of entities
- Attributes of relationships
- Multi valued and composite attributes - Primary keys
- Cardinality ratio
- Total and partial participations
Notice:
* State your assumptions if found.
*Draw the ERD using smart draw program or any preferred program.
Important notes
•
The assignment must be your own work if not, 0 marks will be earned.
•
An interview at the submission might be scheduled with your
tutor.
•