ER Diagram and Normalization for Hotel Booking Management System
Verified
Added on 2023/06/10
|9
|833
|461
AI Summary
This article explains the ER diagram and normalization process for a hotel booking management system. It includes a business rule, functional dependencies, and references.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Assignment 2 1
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
PART A......................................................................................................................................3 1. Draw the ER diagram.........................................................................................................3 PART B......................................................................................................................................4 1. Map the ER diagram to 3 NF.............................................................................................4 2. Normalisation.....................................................................................................................6 REFERENCES...........................................................................................................................7 2
PART A 1. Draw the ER diagram An entity relationship diagram is based on the ERD model in which consider as graphical representation that create a strong relation among people, place, concept and objects within IT system. In this section, it has been created an entity relationship model for hotel booking systems. It shows all kind of visual in the form of database tables and creating a strong relationship between themselves. Figure: 1 Entity Relationship Diagram InFigure-1,ithasbeenexplainedtheentityrelationshipdiagramofhotelbooking management system. On the basis of evaluation, it can be divided the entities such as payment, customer, and hotel, staff, booking, Room and service (Al-Fedaghi,2021). Every entities are showing a proper attributes in which develop a strong relationship between two database tables. Entities- An entity refers to the real world object which is distinguishable from one object to another in the real basis. Attributes- it is based on the conceptual termed to represent a characteristics of entities. In the context of DBMS, it refers to the concept of database component like DB tables. It can be referred to the field and explain the multiple column of database. 3
4
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Business Rule Each and every customer can book a room in the hotel Each booking can only made by one customer Every employee can check the booking of consumer Customer can make payment Each payment can be done by one customer Payment can depend on the room booking Each room can be booked by customer and assigned on the specific deadline. Employee allows to store the room booking information into the system. PART B 1. Map the ER diagram to 3 NF First Normal Form- Second Normal Form- 5
Since the 2ndnormal form, it has been separated two tables, but it is necessary where both key are showing in the same time. So, it can be used the compound key and considering primary key as conjoined to represent each other. Customer id and booking id -composite primary key. Booking idCustomer_name, Customer_phone no, Customer_email Third Normal Form- It is defined the database schema design approach in terms of relational databases, which uses a normalizing the effectiveness of principles to minimise the level of duplication of data (Mortezaee,2021). It is also helping to avoid any kind of anomalies and maintaining the level of referential integrity in proper manner. Separating these two tables into individual representation and makes all type of column dependent on the particular key in the table, no other column. In this way, it has been created a third normal form. 6
Booking idpayment id Payment idbooking_status Non-key attributesBooking title, booking type, booking status and booking dates Non-key attributes are dependent on the primary key. Booking title, booking type, booking datebooking id Booking statuspayment id 2. Normalisation Normalisation is based on the process or method that helps to organise, manage large amount of data or information in the form of database. It should be creating a particular tables, establishing a strong relationship between tables on the basis of business rules (Pham, Liuand Hoi,2022). It would be designed the database and needs to be protected or secured data, make a database which has become more flexible by eliminating inconsistency and redundancy. Functional Dependencies A functional dependency is defined the relationship between two attributes, which is typically representing a relation in the primary key, non-key attributes within database table/ 3 NF relations Booking idBooking titlePayment idPayment amount Functional dependencies- BookingBooking title Booking idbooking titlepayment Booking idBooking titleBooking typePayment idPayment amount Booking idpayment Keybooking id Payment idPayment status 7
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
REFERENCES Book and Journals Al-Fedaghi, S., 2021. Conceptual Data Modeling: Entity-Relationship Models as Thinging Machines.arXiv preprint arXiv:2109.14717. Mortezaee, K., 2021. Normalization in tumor ecosystem: opportunities and challenges.Cell Biology International.45(10). pp.2017-2030. Pham,Q.,Liu,C.andHoi,S.,2022.Continualnormalization:Rethinkingbatch normalization for online continual learning.arXiv preprint arXiv:2203.16102. 9