









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
[UPDATE] - Database - 1622 _ Greenwich
Typology: Assignments
1 / 15
This page cannot be seen from the preview
Don't miss anything!










Qualification TEC Level 5 HND Diploma in Computing Unit number and title Unit 04: Database Design & Development Submission date 19 /02/ Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Student ID Class Assessor name Do Duy Thao Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature Grading grid P1 M1 D
❒ Summative Feedback: ❒ Resubmission Feedback: Grade: Assessor Signature: Date: Signature & Date:
Advanced statistical actions:
According to a recent survey of hotels with customers who have booked room and with store employees, there are a number of issues raised as follows:
Entity Relationship Diagram:
Figure 1 ERD for Hotel Management System
The diagram includes 6 tables with saved values for data needed system. Booking table: The booking table contains the primary key of Booking_ID. Also, the foreign key are Customer_ID aand Employee_ID. These are also contributes like day_Checkin and day_Checkout. Employee table: The Employee table contains the primary key of Employee_ID. Besides, the table has attributes like Employee_FName , Employee_LName, Employee_Gender, Employee_DoB, Employee_PhoneNumber. The above attributes are intended to provide employee information.
Figure 3 ERD Employee and Booking The relationship between Booking and RoomDetails tables: With 1 ID of Booking will be associated with 1 room. And for each room, there will be in many booking - > One to Many relationship
Figure 4 ERD Booking and RoomDetails The relationship from RoomDetails and Room: With Room ID, you can identify the type and the price of difference rooms but the type and price just belongs to 1 identity room ID - > One to Many relationship Figure 5 ERD Room and RoomDetais The relationship between Booking and Billing tables: A Bill will contain a certain Booking Id and all the other information of rooms, customer and employees as well as total price. And a billing will have only one identity booking id, in contrast with a booking id, they can have many bills for each object.
Customer table: Coulumn Name Data Type Customer_ID INT Customer_FName VARCHAR Customer_LName VARCHAR Customer_Gender VARCHAR Customer_DoB DATE Customer_Phonenumber INT Table 2 Data Types of Customer table Booking table: Column Name Data Type Customer_ID INT Employee_ID VARCHAR day_Checkin DATE day_Checkout DATE Table 3 Data of Booking table Billing table: Column Name Data Type BillNo INT BookingID INT Total INT
Table 4 Data of Billing RoomDetails table: Column Name Data Type Room_ID INT Booking_ID INT Amount INT Table 5 Data of Roomdetails table Room table: Column Name Data Type Room_ID INT Room_Type VARCHAR Room_Price INT Table 6 Data of Room table Database Diagram: Tables, attributes, and relationships are all common features of both ERD and database diagrams, as seen in the database diagram graphic above. The ERD, on the other hand, displays the primary and foreign keys in detail so that the reader may grasp the system. Finally, the database diagram maintains the original concept of the ERD in all of its fundamental aspects.