Hotel Management Dbms Report
Hotel Management Dbms Report
Submitted By
2024-2025
ABSTRACT
The system is designed to address common challenges faced by hotel operations such as
overbooking, data redundancy, lack of real-time availability, and manual record-keeping
errors. A structured relational database model has been implemented to store and manage all
essential data entities like customers, rooms, payments, employees, and service requests. SQL
(Structured Query Language) is used extensively to define, query, and manipulate the data,
ensuring that the system maintains data integrity, consistency, and security.
Room Booking and Availability Module: Enables users to check room availability in real-
time and make reservations based on room type, dates, and customer preferences.
Billing and Payment Module: Automatically calculates charges based on room rates,
duration of stay, services availed, and applicable taxes, providing clear and accurate billing.
Staff and Services Management: Tracks employee roles, shift schedules, and service task
allocations such as housekeeping and maintenance.
We would like to express our special thanks and gratitude to Management of Dayananda
Sagar Academy of Technology and Management for providing all the required facility.
We would like to convey our immense gratitude to Dr. Ravishankar M, Principal, Dayananda
Sagar Academy of Technology and Management and Dr. Nandini Prasad K S, Dean-
Foreign Affairs & HOD, Department of Information Science and Engineering, Dayananda
Sagar Academy of Technology and Management, Bangalore, for their continuous support and
encouragement which enabled us to come up with this project and also thank them for
providing the right ambience for carrying out the same.
We would like to express our profound gratitude to our Project Guide Dr. Rashmi Amardeep,
Associate professor, Department of Information Science and Engineering, Dayananda Sagar
Academy of Technology and Management, Bengaluru for their guidance and suggestions for
successful completion of our project.
We would like to thank our parents and friends who helped us in finalizing this project within the
stipulated time frame.
Chethan R (1DT23IS035)
Jeevan K(1DT23IS059)
TABLE OF CONTENTS
Chapter1
1. Introduction
1.1 Introduction
1.2 Objectives
1.3 Modules
Chapter 2
2. Survey of Technologies
2.2 Languages
2.2.1 Frontend
2.2.2 Backend
Chapter 3
3.3 ER-Diagram
3.4 Normalization
Chapter 4
4. Program Code
Chapter 5
5. Result and Discussion
Chapter 6
6. Testing
6.1 Testcases
Chapter 7
7. Conclusio
n References
CHAPTER 1
1. Introduction
1.1 Introduction
The hospitality industry, especially hotel management, demands efficiency, accuracy, and reliability in
handling daily operations such as room reservations, guest check-ins and check-outs, billing, and staff
coordination. Traditional manual systems are often prone to errors, time-consuming, and unable to meet
the real-time demands of modern-day hotel operations. To address these limitations, the implementation
of a computerized Hotel Management System (HMS) based on a Database Management System
(DBMS) has become essential.
A Hotel Management System powered by a DBMS serves as a centralized platform to store, manage, and
retrieve information related to guests, bookings, rooms, employees, and services. It enables hotels to
operate smoothly by automating tasks, reducing redundancy, and ensuring the consistency and security
of data. With the help of Structured Query Language (SQL), the system can efficiently manage large
volumes of data, support complex queries, and maintain relationships between multiple entities.
This project aims to design and implement a Hotel Management System that demonstrates how database
principles can be applied to solve real-world problems in the hotel industry. The system supports key
functionalities such as:
Room booking and availability checking
Guest registration and profile management
Check-in/check-out processing
Billing and payment tracking
Staff scheduling and management
The proposed system is designed using a relational database model where entities such as Rooms, Guests,
Bookings, Payments, and Employees are represented as tables with defined relationships. The system
ensures data integrity through the use of primary and foreign keys, constraints, and normalization
techniques.
By integrating a DBMS into hotel operations, the system not only improves the speed and accuracy of
service but also supports decision-making through reporting and data analysis. This report discusses the
database design, system architecture, functionalities, and advantages of using a DBMS in the context of
hotel management, highlighting the role of technology in enhancing business operations in the
hospitality sector
1
1.2 Objectives
1.3 Modules
2
Chapter 2
2. Survey of Technologies
The Hotel Management System is a web-based application developed using a combination of front-end and
back-end technologies to provide a user-friendly interface and efficient database operations. The system
is designed to manage hotel activities such as room booking, guest management, billing, and more. The
software stack includes:
1. HTML (Hyper Text Markup Language)
HTML is used for structuring the web pages of the system. It defines the layout of the user interface,
including forms, tables, navigation menus, and content display areas.
2. CSS (Cascading Style Sheets)
CSS is used to style and enhance the appearance of the HTML elements. It ensures a clean, responsive, and
visually appealing interface across different devices and screen sizes.
3. PHP (Hypertext Preprocessor)
PHP serves as the server-side scripting language that handles the application’s business logic. It processes
user inputs, connects to the database, executes SQL queries, and dynamically updates content based on
user interactions.
4. SQL (Structured Query Language)
SQL is used to create and manage the relational database. It handles all data-related operations such as
inserting, updating, retrieving, and deleting records. SQL is essential for maintaining data integrity and
supporting complex queries across multiple tables.
2.2 Languages
The project is developed using a combination of frontend and backend technologies. Each part of
the system is implemented using appropriate programming languages and tools for effective
functionality and user experience.
2.2.1 Frontend
3
HTML: Markup language that structures the content and elements on web pages.
CSS: Styling language that controls the visual presentation and layout of HTML
elements
4
2.2.2 Backend
PHP: Server-side scripting language that handles data processing, business logic,
and database interactions
MySQL: Relational database management system that stores and manages all
movie data, user information, and application records
Apache: Web server software that processes requests and serves web content to clients
5
Chapter 3
Functional Requirements:
These are the core features and operations the system must perform:
Room Management
o Add, update, or delete room details.
o View room availability and status (available, booked, maintenance).
Guest Management
o Register new guests with personal details.
o Maintain guest history and contact information.
Booking and Reservation
o Book rooms based on availability and customer requirements.
o View, update, or cancel reservations.
Check-In/Check-Out
o Manage check-in/check-out records.
o Update room status automatically during these processes.
Billing and Payment
o Generate bills based on stay duration and services used.
o Accept and record payments.
Employee Management
o Add and manage employee records.
o Assign roles and restrict access based on job functions.
Service Management
o Track additional hotel services (laundry, meals, transport).
o Include service charges in the final bill.
Reports and Search
o Generate reports for management (e.g., daily revenue, occupancy).
o Search guest and booking records easily.
6
Non-Functional Requirements:
These are the quality attributes that define how the system performs:
Usability
o The system should have a simple and intuitive interface suitable for users with basic
computer knowledge.
Performance
o The application should respond quickly to user actions, even with a growing number of
records.
Scalability
o The database and application structure should support future expansion (e.g., more users,
more rooms, added services).
Security
o Only authorized users should access administrative functions.
o Sensitive data such as guest details and payment info must be protected.
Reliability
o The system must function accurately and consistently during regular operation.
Maintainability
o The codebase should be modular and well-documented for future updates or bug fixes.
Portability
o The system should work on any standard web browser and be deployable on local servers
like XAMPP/WAMP or web hosting environments.
7
3.2 Hardware and Software Requirements
Hardware Requirements:
3.3 ER-Diagram
The ER (Entity-Relationship) Diagram represents the structure of the database and its entities: Entities
and Relationships:
Guest
1. Guest_ID (Primary Key)
2. Name
3. Phone
4. Email
5. Address
6. ID_Proof
Room
1. Room_ID (Primary Key)
8
2. Room_Type
3. Status (Available/Booked/Maintenance)
4. Price_Per_Night
Booking
1. Booking_ID (Primary Key)
2. Guest_ID (Foreign Key)
3. Room_ID (Foreign Key)
4. Check_In_Date
5. Check_Out_Date
6. Total_Amount
Payment
1. Payment_ID (Primary Key)
2. Booking_ID (Foreign Key)
3. Payment_Date
4. Amount_Paid
5. Payment_Method (Cash/Card/Online)
Employee
1. Employee_ID (Primary Key)
2. Name
3. Role
4. Phone
5. Email
Service
1. Service_ID (Primary Key)
2. Service_Name
3. Price
Service_Usage
1. Usage_ID (Primary Key)
2. Booking_ID (Foreign Key)
3. Service_ID (Foreign Key)
4. Quantity
5. Date
9
Relationships:
10
3.4 Normalization
To ensure data consistency and reduce redundancy, the database is designed using
normalization principles:
11
5. Fourth Normal Form (4NF)
12
Chapter 4
4. Program Code
Code Details
Filtering the movies based on language, genre, Duration, PG Rating and ordering based on release
date:
3. Duration: Uses max duration from user input or fetches max from DB.
13
Booking a Show (Function: book(request,
Displays:
Code Efficiency
Model Efficiency:
o Raw SQL queries bypass ORM overhead but lack model-level validations
and signals.
Performance Optimization:
o Separate queries for filter options increase database load rather than using
cached aggregated queries.
14
Maintainability:
o The Use of raw SQL limits portability across database systems and
complicates schema changes.
o String formatting in SQL queries makes code harder to read and maintain
as complexity grows.
Scalability:
15
Chapter 5
1. User Roles
Admin: Full access to all modules including room management, customer records, billing,
and employee management.
Receptionist: Can check in/out customers, assign rooms, and generate invoices.
Customer (optional): Can book rooms online and view booking status..
16
Login and Access
1. Key Functional
Pages
Functionality:
👤 User Interaction:
2. Dashboard
🔹 Functionality:
👤 User Interaction:
Admin can view all metrics including revenue and employee status.
Receptionist sees only room and booking stats.
Users can click on buttons to go to Room Management, Bookings, Billing, etc.
3. Room Management
🔹 Functionality:
👤 User Interaction:
Admin or Receptionist adds a room by selecting type, number, rate, and status.
17
Can update room prices or mark a room as unavailable.
Rooms automatically get updated when assigned or vacated.
4. Customer Check-In
🔹 Functionality:
👤 User Interaction:
5. Customer Check-Out
🔹 Functionality:
👤 User Interaction:
Receptionist selects the guest from the list or enters booking ID.
System auto-calculates the number of days stayed and room charges.
Clicks Check-Out, bill is generated.
User can print or email the bill.
6. Booking Management
🔹 Functionality:
18
Edit or cancel bookings.
👤 User Interaction:
7. Billing System
🔹 Functionality:
👤 User Interaction:
👤 User Interaction:
19
Backs up entire hotel database (rooms, guests, bookings, billing).
Can restore backup in case of system failure.
👤 User Interaction:
👤 User Interaction:
👤 User Interaction:
20
RESULTS
PAYMENT PAGE
21
PREVIOUS BOOKING HISTORY
Fig 4
PAYMENT DETAILS
Fig 5
23
Stay: 3 nights, Invoice amount: Correct invoice
TC_06 Generate invoice Pass
Room Rate: ₹1000 ₹3000 generated
Search booking by Show matching Matching entry
TC_07 Name: "Rahul" Pass
customer name bookings displayed
Attempt to assign Show error: Room Error message
TC_08 Room No: 101 Pass
already booked room not available shown
Room status not updating on check-out Linked Room table to Booking table for status update
Accepting blank customer names Added field validation before submission
Bill calculation error on leap years Added date difference logic using standard library
Unresponsive UI on old browsers Improved frontend compatibility using Bootstrap
24
CONCLUTION
The Hotel Management System was successfully designed and implemented to automate and streamline
key operations of hotel administration, including room booking, guest check-in/check-out, billing, and
employee management. The system provides a reliable and efficient solution that reduces manual work,
minimizes errors, and improves the overall productivity of hotel staff.
Through the use of a database management system, data is stored securely, easily retrievable, and well-
organized. The user interface is simple and intuitive, allowing even non-technical staff to operate the
system with ease. Testing confirmed the system’s stability, functionality, and accuracy in handling real-
world hotel scenarios.
This project has not only demonstrated the practical application of database design principles but also
emphasized the importance of user-centered design and software validation. Future improvements may
include integrating online booking, real-time availability tracking, and customer feedback systems to
further enhance functionality and user experience.
Overall, the Hotel Management System fulfills its intended purpose and is ready for real-world
deployment in a small to medium-sized hotel environment.
25
REFERENCE
26
27
28