Last updated
Analyze hotel bookings, cancellation risk, revenue loss, stay duration, and hotel-wise booking performance.
Analyze hotel bookings, cancellation risk, revenue loss, stay duration, and hotel-wise booking performance.
Your dataset contains hotel_bookings with check-in and check-out dates, room rate, hotel type, and booking status.
| Column | Type | Key / Notes |
|---|---|---|
| booking_id | INT | Unique booking ID |
| guest_name | VARCHAR(50) | Guest name |
| hotel_type | VARCHAR(50) | Type of hotel |
| check_in_date | DATE | Guest check-in date |
| check_out_date | DATE | Guest check-out date |
| room_rate | FLOAT | Room rate per night |
| booking_status | VARCHAR(20) | Booking status |
hotel_bookings — 8 rows
| booking_id | guest_name | hotel_type | check_in_date | check_out_date | room_rate | booking_status |
|---|---|---|---|---|---|---|
| 701 | Amit | Business Hotel | 2024-03-01 | 2024-03-04 | 4500 | Completed |
| 702 | Neha | Resort | 2024-03-05 | 2024-03-10 | 7500 | Cancelled |
| 703 | Rohan | Budget Hotel | 2024-03-08 | 2024-03-10 | 2200 | Completed |
| 704 | Priya | Business Hotel | 2024-03-12 | 2024-03-15 | 5000 | Completed |
| 705 | Kabir | Resort | 2024-03-14 | 2024-03-20 | 8200 | Cancelled |
| 706 | Isha | Budget Hotel | 2024-03-16 | 2024-03-18 | 2500 | Completed |
| 707 | Dev | Business Hotel | 2024-03-18 | 2024-03-22 | 4800 | Cancelled |
| 708 | Meera | Resort | 2024-03-21 | 2024-03-25 | 7800 | Completed |
Calculate stay duration for each booking. Calculate potential revenue for every booking. Calculate revenue loss for cancelled bookings. Classify booking risk as High Risk, Medium Risk, or Low Risk. Summarize hotel-type-wise total bookings, completed bookings, cancelled bookings, potential revenue, and revenue loss.
Your output should look like this (partial example):
| booking_id | guest_name | hotel_type | stay_duration | potential_revenue | revenue_loss | booking_risk |
|---|---|---|---|---|---|---|
| 701 | Amit | Business Hotel | 3 | 13500 | 0 | Low Risk |
| 702 | Neha | Resort | 5 | 37500 | 37500 | Medium Risk |
| ... | ... | ... | ... | ... | ... | ... |