Hotel Reservation Data Analysis With SQL
Hotel Reservation Data Analysis With SQL
Using SQL
Presented By- Hitesh Pandey
Data Analyst Intern
(Mentorness)
Batch: MIP- DA-10
Table Of Contents
• Introduction
• Problem Statement
• Dataset Description
• Data Exploration and Analysis
• Insights
Introduction
The hotel industry relies on data to make informed decisions and
provide a better guest experience. We have hotel reservation
dataset, which contains data and will be needing to gain insights
into guest preferences, booking trends, and other key factors that
impact the hotel's operations. We will use SQL to query and
analyze the data, as well as answer specific questions about the
dataset, this will provide us the information to make informed
decisions accordingly.
Dataset Description
• The dataset includes the following columns:
• Booking_ID: A unique identifier for each hotel reservation.
• no_of_adults: The number of adults in the reservation.
• no_of_children: The number of children in the reservation.
• no_of_weekend_nights: The number of nights in the reservation that fall on
• weekends.
• no_of_week_nights: The number of nights in the reservation that fall on
• weekdays.
• type_of_meal_plan: The meal plan chosen by the guests.
• room_type_reserved: The type of room reserved by the guests.
• lead_time: The number of days between booking and arrival.
• arrival_date: The date of arrival.
• market_segment_type: The market segment to which the reservation
• belongs.
• avg_price_per_room: The average price per room in the reservation.
• booking_status: The status of the booking
Data Exploration and Analysis
• Here are the SQL Queries that we will be using to get information about the data ,
which will help us in making decisions.
• The first two Queries provide us the information about
(i) Total number of reservation and (ii) Meal plan most popular among all the guest.
• By executing those queries we get that the average price for reservations
with children is 144.56.. And the reservation count for the year 2018 is 577.
• (v) the fifth query gives us the most commonly used room type from Hotel
Reservation Dataset.
• (vi) the sixth query gives us the information about reservations that fall on
Weekend.
• We get the answer that the most common room type that is reserved by the
guests is Room type 1 with 534 reservations and the total count of
reservation that fall on weekend is 383.
• (vii) by using 7th query we can find the highest and lowest lead time for
reservation
• (viii)most common market segmentation type for reservation is given with
8th query.
• By executing the queries we get that the highest lead time is 443 and the
lowest lead time is 0 and the most commonly used market segmentation
type for reservation is Online with a count of 518 reservations through this.
• (ix) we can find the reservations that have a booking status of confirmed
with the 9th query.
• (x) the 10th query gives us the total number of adults and children across all
the reservations.
• We get the analysis as there are 493 confirmed reservations and the total
number of reservations with adults is 1316 and total number of reservation
with children are 69.
• (xi)using the 11th query we get the average number of weekend nights for
reservations involving children.
• (xii)using the 12th query we get the count of Reservations made in each
month of the year
• Here we can see that the number of nights spent by guests that were in
different room types , we have averaged the weekend and weekday both
together for the room types.
• (xiv) the 14TH query gives us the number of reservation for the most
common room type and its average price, involving children.
• (xv)Lastly with the help of 15th query we can analyze the market segment
which generates the highest average price per room.
• We can see that the online market segment generates the highest average
price per room which is 112.45.
Insights
From Hotel Reservation Data we analyzed the data using SQL queries and got
the information about the data which gives us insights on important factors
like how many reservations are made for weekdays or weekends, what was the
mode of reservation which gave us the most number of reservation, how much
time does guests have spend, how much price were guests willing to pay.
These factors help us decide out next course of action, it helps us in deciding
what we will be doing so we can maximize our profits, promote the mode with
most number of confirmed reservations. We can also plan how we will operate
by analyzing the time spent by each guest and how involving children affected
the time spent.
All the information we extract from the data helps us in taking actions accordingly
and make changes to improve our service and guest experience. SQL helps us in
extracting such information easily from huge data, and the analysis provides us the
required information and choose the best course of action.