0% found this document useful (0 votes)
34 views30 pages

DBMS Report

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views30 pages

DBMS Report

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

"Janana Sangama",Belagavi-590018

A Mini-Project Work on

“HOTEL MANAGEMENT SYSTEM”


A Dissertation work submitted in partial fulfillment of the requirement for
the award of the degree

Bachelor of Engineering
In
Computer Science & Engineering

Submitted by
Sharath M Talawar 1AY21CS169
Saikumar M 1AY21CS157
Sachin 1AY21CS154

Under the guidance of


Mrs. Kamala K
Assistant Professor

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 .Sarvepalli Radhakrishnan Road , Soldevanahalli ,Bengaluru-560107

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.

Signature of Guide Signature of HOD


Mrs. Kamala K Dr. Ajith Padyana
Assistant Professor Associate Professor and Head,
Department of CSE
Acharya Institute of Technology

Name of the Examiners Signature with date

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.

We wish to express sincere thanks to my guide Mrs. Kamala K , Assistant Professor,


Department of Computer Science and Engineering for helping us throughout and guiding us
from time to time.

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.

Sharath M Talawar (1AY21CS169)


Saikumar M (1AY21CS157)
Sachin (1AY21CS154)
i
ABSTRACT

The Hotel Management System (HMS) is a Database Management System (DBMS)


designed to streamline and automate hotel operations. This system incorporates features
such as reservation management, guest check-in/check-out, room allocation, billing, and
reporting. Utilizing a relational database, it efficiently stores and retrieves data, ensuring
data integrity and security. The HMS enhances overall operational efficiency by providing
real-time insights, reducing manual errors, and facilitating seamless communication
between various hotel departments. With its user-friendly interface and robust
functionalities, the HMS optimizes resource utilization, improves customer service, and
ultimately contributes to the overall success of the hotel business.
ii

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

Components of Database Management System 4

Architecture of database System 5

Entity Relationship Diagram 8

Schema Diagram 10

Snapshot of root page or welcome screen 16

Snapshot of sign up page as customer 17

Snapshot of Login page 18

Snapshot of hotels 19

Snapshot of hotel room dashboard 20

Snapshot of hotel room confirm 21

Snapshot of booked room details 22


Hotel Management System DBMS Mini-Project

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.

Database systems are meant to handle large collections of Computer. Management of


data involves both defining structures for the storage of Computer and providing mechanisms
that can do the manipulation of those stored Computer. More over , the data base system
must ensure the safety of the Computer stored, despite system crashes or attempts at
unauthorized access.

AIT/CSE/2023-24 1
Hotel Management System DBMS Mini-Project

Why DBMS?
 To develop software applications in less time.

 Data Independence and efficient use of data.

 For uniform data administration.

 For data integrity and security.


 For concurrent access of data, and data recovery from crashes.

 To use user-friendly declarative query language.

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.

● Industry: Where it is a manufacturing unit ,warehouse ,or distribution center ,each


one needs a database to keep the records of ins and outs. For example, distribution
centers should keep a track of the product units that are supplied into the centre as
well as the products that got delivered out from the distribution centre on each day;
this is where DBMS comes into the picture.

● 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

A DBMS manages data and has many advantages.

● Data Independence: Application programs should be as free or independent as


possiblefromdetailsofdatarepresentationandstorage.DBMScansupplyanabstract view
of the data for insulating application code from such facts.

● Efficient data access: DBMS utilizes a mixture of sophisticated concepts and


techniques for storing and retrieving data competently and this feature becomes
important in cases where the data is stored on external storage devices.

● 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

Fig-1.1: Components of a Database Management System

● Users: Users may be of any kind such as DB administrator, System developer or


database users.

● Database application: Database application may be Departmental, Personal,


organization’s and / or Internal.

● DBMS: Software that allows users to create and manipulate database access.

● Database: Collection of logical data as a single unit.

● 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

Fig-1.2: Architecture of database system

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

Fig-3.2: 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.

4.2 Creation of Tables

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

CREATE TABLE `customers` (`c_id` int(5) NOT NULL,`c_name` varchar(20) NOT


NULL,`address`
L,`address` varchar(30) NOT NULL,`ph_no`bigint(10) NOT NULL,`password` varchar(20)
NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;

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

CREATE TABLE `reservation` ( `res_id` int(5) NOT NULL,`r_id` int(5) NO


NOT NULL,`c_id`
int(5) NOT NULL, `check_in` date NOT NULL, `no_of_days` int(5) NOT NULL)
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

Fig-5.1: Snapshot of root page or welcome screen

1. The welcome screen contains links for


● Login in
● Signup
2. User can login using username and password
3. User can signup by providing all details.
Validators Given
1. The Username and Password cannot be empty.
2. The Username must be of Name type only.
3. Users need to enter username and password.

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

1. A user will be able


ble to login only when he has been registered.

2. When he completes the registration i.e sign up user will be directly redirected to this
page giving a prompt of Registration done.

3. After the completion of the Login the use


user will be directed to hotel home page

AIT/CSE/2023-24 18
Hotel Management System DBMS Mini-Project

Fig-5.4: Snapshot of hotels

The above snapshot is seen as soon as th


the user registers for hotel through
h this page it will take
to rooms.

● User can select the hotel


hotel.

● User can even select date


date.

● User can select number of days


days.

● After giving procced it will take to hotel dashboard


dashboard.

● When user Logout the User will be directed to homepage.

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

Fig--5.5: Snapshot of hotel rooms dashboard

● 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.

● When user Logout the User will be directed to homepage.

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

This a snapshot of room confirm.


● It shows the hotel name, room, number of days, check in and room price
price.

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

This is a snapshot of booking details.


● It shows the all the details of hotel and the room .

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

CONCLUSION & FUTURE ENHANCEMENT


Conclusion
In conclusion, the Hotel Management System project in Database Management
System (DBMS) successfully addresses the intricate challenges of hotel operations. The
system streamlines reservation processes, enhances room allocation efficiency, and automates
key tasks, ultimately optimizing overall management. With robust database design, it ensures
data integrity, security, and responsiveness. The project serves as an invaluable tool for hotel
administrators, offering a centralized platform for efficient resource management and
improved guest services. Through this DBMS solution, the hotel industry gains a
comprehensive management system that not only simplifies daily operations but also
contributes to a more organized and customer-centric approach.

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:

AI-Powered Recommendations: Implement artificial intelligence algorithms to analyze


guest preferences and behavior, providing personalized recommendations for room selection,
amenities, and services.

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

You might also like