Write a SQL query using window functions to rank destinations by monthly bookings at Expedia Group.
Use confirmed bookings with a non-null booking date, and exclude bookings whose destination does not exist in the destination table.
booking_month, destination_name, monthly_bookings, and booking_rank.| Column | Type | Description |
|---|---|---|
| booking_idPK | INT | Unique booking identifier |
| destination_id | INT | Referenced destination identifier |
| booking_date | DATE | Date on which the booking was made |
| booking_status | VARCHAR(20) | Booking lifecycle status |
| Column | Type | Description |
|---|---|---|
| destination_idPK | INT | Unique destination identifier |
| destination_name | VARCHAR(100) | Display name of the destination |