DBMS Report
DBMS Report
"Janana Sangama",Belagavi-590018
A Mini-Project Work on
Bachelor of Engineering
In
Computer Science & Engineering
Submitted by
Sharath M Talawar 1AY21CS169
Saikumar M 1AY21CS157
Sachin 1AY21CS154
2023-24
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
ACHARYA INSTITUTE OF TECHNOLOGY
(AFFILIATED TO VISVESVARAYA TECHNOLOGICAL UNIVERSITY,BELAGAVI.APPROVED BY AICTE,NEWDELHI,ACCREDITED BY
NAAC, NEW DELHI)
Acharya Dr.SarvepalliRadhakrishnan Road,Soldevanahalli,Bengaluru-560107
Certificate
This is to Certify that the Mini-Project work entitled “Hotel Management System” is a
bonafide work carried out by Sharath M Talawar (1AY21CS169), Saikumar M
(1AY21CS157) and Sachin (1AY21CS154) in partial fulfillment for the award of the
degree of Bachelor of Engineering in Computer Science and Engineering of the
Visvesvaraya Technological University, Belagavi during the year 2023-24. It is certified
that all corrections/suggestions indicated for Internal Assessment have been incorporated
in the Report deposited in the departmental library. The Project has been approved as it
satisfies the academic requirements in respect of Project work prescribed for the Bachelor
of Engineering Degree.
1. _______________________________
2. ________________________________
3. ________________________________
ACKNOWLEDGEMENT
The satisfaction that accompanies the successful completion of this mini-project would be in
complete without the mention of the people who made it possible through constant guidance
and encouragement.
We would take this opportunity to express our heartfelt gratitude to Sri. B. Premnath
Reddy, Chairman, Acharya Institutes, and Dr. Rajath Hegde M, Principal, Acharya Institute
of Technology for providing the necessary infrastructure to complete this mini-project.
We wish to express our deepest gratitude and thanks to Dr. Ajith Padyana, Associate
Professor and Head of the Department, Computer Science, and Engineering.
A warm thanks to all the faculty of the Department of Computer Science and
Engineering, who have helped us with their views and encouraging ideas.
TABLEOFCONTENTS
Acknowledgement i
Abstract ii
1.Introduction 1
1.1IntroductiontoDBMS 1
1.1.1Why DBMS? 2
1.1.2Database applications 2
1.1.3Advantagesof DBMS 3
1.1.4 Components of DBMS 4
1.1.5Three-Schemaarchitecture 5
2.System Requirements 7
2.1HardwareRequirements 7
2.2Software Requirements 7
3.Design 8
3.1 ER Diagram 8
3.2 Schema Diagram 10
4.System Implementation 11
4.1 implementation
4.2 creation of tables 11
4.2.1Amentities 12
4.2.2Customer 12
4.2.3Hotel 13
4.2.4Reservation 13
4.2.5Res_log 14
4.2.6Room 14
4.3 Triggers 15
4.4StoredProcedures 15
5.Snapshots 16
Conclusion &Future Enhancements 23
Bibliography 24
iii
TABLE OF FIGURES
Schema Diagram 10
Snapshot of hotels 19
CHAPTER1
INTRODUCTION
The Hotel Management System project in Database Management System (DBMS)
aims to streamline and enhance the efficiency of hotel operations. This comprehensive system
facilitates seamless management of reservations, room allocations, guest details, billing, and
staff assignments. With a user-friendly interface, it provides real-time updates on room
availability, automates check-in/check-out processes, and ensures accurate financial tracking.
The database design ensures data integrity, security, and optimal performance. This project
serves as a centralized solution for hotel administrators, offering them a powerful tool to
effectively manage their resources and provide a superior guest experience.
Introduction to DBMS
DBMS stands for Database Management System .We can break it like this DBMS=Database
+Management System. The database is a collection of data and a Management System is a set
of programs to store and retrieve those data. Basically, DBMS is a software tool to organize
(create, retrieve, update and manage) data in a database.
The main aim of a DBMS is to supply a way to store up and retrieve database
Computer that is both convenient and efficient. By data, we mean known facts that can be
recorded and that have embedded meaning. Normally people uses of software such as
DBASEIV or V, Microsoft ACCESS ,or EXCEL to store data in the form of a database. A
data is a unit of data. Meaningful data combined to form Computer. Hence , Computer is
interpreted data – data provided with semantics. MS. ACCESS is one of the most common
examples of database management software.
AIT/CSE/2023-24 1
Hotel Management System DBMS Mini-Project
Why DBMS?
To develop software applications in less time.
AIT/CSE/2023-24 2
Hotel Management System DBMS Mini-Project
Database applications
● Telecom: There is a database to keep track of the Computer regarding calls made,
network usage, customer details, etc. Without the database systems, it is hard to
maintain that huge amount of data that keeps updating every millisecond.
● Education sector: Database systems are frequently used in schools and colleges to
store and retrieve the data regarding student details, staff details, course details, exam
details , pay roll data, attendance details ,fees details etc. There is a hell lot of
interrelated data that needs to be stored and retrieved efficiently.
● Online shopping: You must be aware of the online shopping websites such as
Amazon , Flipkart etc. These sites store the production formation ,your addresses and
preferences , credit details and provide you the relevant list of products based on your
query .All this involves a Database management system.
● Banking system: For storing customer info, tracking day to day credit and debit
transactions, generating bank statements etc. All this work has been done with the
help of Database management systems.
AIT/CSE/2023-24 3
Hotel Management System DBMS Mini-Project
Advantages of DBMS
● Data integrity and security: If data is accessed through the DBMS, the DBMS can
enforce integrity constraints on the data.
● Data administration: When several users share the data, integrating the
administration of data can offer major improvements. Experienced professionals
understand the nature of the data being managed and can be responsible for
organizing the data representation to reduce redundancy and make the data to retrieve
efficiently.
● Providing backup and recovery: A DBMS must provide facilities for recovering
from hardware or software failures. The backup and recovery subsystem of the DBMS
is responsible for recovery.
● Permitting inferencing and actions using rules: Some database systems provide
capabilities for defining deduction rules for inferencing new Computer from the
stored database facts.
AIT/CSE/2023-24 4
Hotel Management System DBMS Mini-Project
Components of DBMS
● DBMS: Software that allows users to create and manipulate database access.
● Database access language: This is used to access the data to and from the database ,
to enter new data, update existing data ,or retrieve required data from databases. The
user writes a set of appropriate commands in a database access language, submits
these to the DBMS, which then processes the data and generates and displays a set of
results into a user readable form.
AIT/CSE/2023-24 5
Hotel Management System DBMS Mini-Project
Three-Schema architecture
The levels format three-level architecture that includes an external, a conceptual and an internal
level. The way users recognize the data is called the external level. The way the DBMS and
the operating system distinguish the data is the internal level where the data is actually stored
using the data structure sand file. The conceptual level offers both the mapping and the
desired independence between the external and internal levels.
AIT/CSE/2023-24 6
Hotel Management System DBMS Mini-Project
CHAPTER2
SYSTEM REQUIREMENTS
Hardware Requirements
● Processor: Intel Core 2 [email protected]®Vista64-Bit/Windows®764- Bit
/ Windows® 8 64-Bit / Windows® 8.1 64-Bit.
● RAM:2GBof RAM
● Memory:256GBHard drive
● Keyboard: MS-compatible keyboard
● Mouse: MS-compatible mouse
Software Requirements
● Operating system: Windows®Vista64-Bit/ Windows®764-Bit/Windows®864- Bit /
Windows® 8.1 64-Bit.
● Frontend: HTML,CSS,JAVASCRIPT,PHP
● Backend: SQL
● Orm : XAMPP
● IDE:VS Code
AIT/CSE/2023-24 7
Hotel Management System DBMS Mini-Project
CHAPTER3
DESIGN
ER Diagram
Fig-3.1:
3.1: Entity Relationship Diagram
AIT/CSE/2023-24 8
Hotel Management System DBMS Mini-Project
N: 1
● Many rooms belong to one hotel.
● Many services can be provided by hotel.
1: N
● One hotel can have many rooms.
● One customer can make many reservation.
.
AIT/CSE/2023-24 9
Hotel Management System DBMS Mini-Project
Schema Diagram
AIT/CSE/2023-24 10
Hotel Management System DBMS Mini-Project
CHAPTER4
SYSTEM IMPLEMENTATION
4.1 Implementation
Implementation is the stage in the project where the theoretical design is turned into a
working system and is giving confidence on the new system for the users that it will work
efficiently and effectively. It involves careful planning, investigation of the current system
and its constraints on implementation, design of methods to achieve the changeover, an
evaluation of change over methods.
Tables created:
Amenities
Customers
Hotel
Reservation
Res_log
Room
AIT/CSE/2023-24 11
Hotel Management System DBMS Mini-Project
4.2.1 Amenities
CREATE TABLE amenities (h_id int(5) NOT NULL, services varchar(25) NOT NULL)
ENGINE= InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
4.2.2 Customer
AIT/CSE/2023-24 12
Hotel Management System DBMS Mini-Project
4.2.3 Hotel
CREATE TABLE hotel ( h_id int(5) NOT NULL, h_name varchar(30) NOT NULL,address
varchar(30) NOT NULL,ph_no bigint(10) NOT NULL,hotel_type int(5) NOT NULL)
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
4.2.4 Reservation
AIT/CSE/2023-24 13
Hotel Management System DBMS Mini-Project
4.2.5 Res_log
CREATE TABLE `res_log` ( `res_id` int(5) NOT NULL,`nod` int(5) NOT NULL)
ENGINE=InnoDB DEFAULT CHARSET=utf8m
CHARSET=utf8mb4
b4 COLLATE=utf8mb4_general_ci;
4.2.6 Room
CREATE TABLE `room` (`h_id` int(5) NOT NULL,`r_id` int(5) NOT NULL, `room_
`room_price`
mediumint(8) NOT NULL,`room_type`
`room_type` varchar(20) NOT NULL) ENGINE=InnoDB DEFAULT
CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
AIT/CSE/2023-24 14
Hotel Management System DBMS Mini-Project
Triggers:
DELIMITER $$
CREATE TRIGGER `res_log` AFTER INSERT ON `reservation` FOR EACH ROW
BEGIN
INSERT INTO res_log VALUES (NEW.res_id,NEW.no_of_days);
END
$$
DELIMITER ;
Stored procedures:
CREATE DEFINER=‘root’@’localhost’
PROCEDURE ‘hoteldetail’ ()
SELECT * FROM hotel
$$DELIMITER ;
AIT/CSE/2023-24 15
Hotel Management System DBMS Mini-Project
CHAPTER5
SNAPSHOTS
The following snapshot contains the root page or launch page
AIT/CSE/2023-24 16
Hotel Management System DBMS Mini-Project
Fig
Fig-5.2: Snapshot of signup page
For giving hotel management signup for hotel management system and then login with the
account. The user needs to give his name and password to sign up.
Validators given
1. User needs to enter username and a password.
2. Password validation is given based on password.
3. If the user already has an account then there is a link for log in.
AIT/CSE/2023-24 17
Hotel Management System DBMS Mini-Project
Fig
Fig-5.3: Snapshot of Login page
Once the user has successfully registered he can login with his register username and password.
Validators given
2. When he completes the registration i.e sign up user will be directly redirected to this
page giving a prompt of Registration done.
AIT/CSE/2023-24 18
Hotel Management System DBMS Mini-Project
Validators given
1. The following page will not be rendered if the user is not successfully logged in .
AIT/CSE/2023-24 19
Hotel Management System DBMS Mini-Project
● When a user selects a hotel than it will show the dashboard of rooms.
● When the user selects room then it will proceed to the payment.
Validators given
● The following page will not be rendered if the user has not successfully logged in.
AIT/CSE/2023-24 20
Hotel Management System DBMS Mini-Project
Fig
Fig-5.6: Snapshot of hotel room confirm
Validators given
● The following page will not be rendered if the user has not successfully registered.
AIT/CSE/2023-24 21
Hotel Management System DBMS Mini-Project
Fig-5.7:
5.7: Snapshot of hotel room booked
Validators given
● The following page will not be rendered if the user has not successfully registered.
AIT/CSE/2023-24 22
Hotel Management System DBMS Mini-Project
Future Enhancement
Future enhancements for a Hotel Management System could include the integration of
advanced technologies to further improve efficiency, customer experience, and overall
operations. Some potential features and advancements could include:
IoT Integration: Connect Internet of Things (IoT) devices to automate room controls, such as
lighting, temperature, and entertainment systems, offering guests a more seamless and
customizable experience.
Mobile App Development: Create a user-friendly mobile application for guests to facilitate
easy booking, check-in/check-out processes, and access personalized services, enhancing
convenience and accessibility.
Blockchain for Security: Incorporate block chain technology for enhanced security and
transparency in financial transactions, guest identity verification, and loyalty programs.
The above mentioned points are the enhancements which can be done to increase the
applicability and usage of this project.
AIT/CSE/2023-24 23
Hotel Management System DBMS Mini-Project
BIBLIOGRAPHY
Web References
1. https://www.w3schools.in/dbms/intro/
2. https://beginnersbook.com/2015/04/dbms-introduction/
3. https://programmerblog.net.com
4. https://www.php.net
5. https://codeproject.com
6. https://stackoverflow.com
7. https://www.youtube.com
8. https://www.google.com
Book References
1. Fundamentals of Database Systems,Ramez Elmasri and Shamkant B.Navathe,7thEdition,
2017, Pearson
AIT/CSE/2023-24 24