Hotel Analytics with SQL

Using SQL to Analyse Hotel KPIs

Michael Grogan
5 min readJul 23, 2023
Source: Photo by Francesca Saraco from Unsplash

The hotel industry relies on several unique KPIs to gauge performance. One of the most important of these is RevPAR — which stands for revenue per available room.

  • RevPAR = Occupancy (%) * Average Daily Rate (ADR)

In addition, hoteliers can also use GOPPAR (or Gross Operating Profit per Available Room) to calculate room profitability.

  • GOPPAR = Operating Income/Number of Available Rooms

Often, hotel businesses can find it challenging to keep up with these metrics and identify key revenue and profitability trends over time. However, using SQL and data visualization together can be quite an effective way of analysing these metrics.

In this example, the use of SQL to calculate RevPAR and GOPPAR metrics on data from a hypothetical hotel database will be illustrated. The Python visualisation library, Seaborn, is also used to illustrate such information via heatmaps and boxplots.

Data

This example will work with two separate tables.

One contains the ADR, Occupancy, and Number of Rooms for three separate hotel brands (Brand 1, Brand 2, and Brand 3), as well as the relevant year and period.

--

--

Michael Grogan
Michael Grogan

Written by Michael Grogan

Statistical Data Scientist | Python and R trainer | Financial Writer | michael-grogan.com

No responses yet