Write a query to calculate the rolling 7-day conversion rate of users who utilized the Price Freeze feature at Hopper.
Assume a user converts when they make at least one booking within seven calendar days after using Price Freeze, including the utilization date. Calculate each utilization date's rate using that date and the preceding six calendar days.
freeze_date, rolling_converted_users, rolling_utilized_users, and rolling_conversion_rate.freeze_date ascending.| Column | Type | Description |
|---|---|---|
| freeze_use_idPK | INT | Unique Price Freeze usage identifier |
| user_id | VARCHAR(20) | Hopper user who used Price Freeze |
| freeze_date | DATE | Date of Price Freeze utilization |
| Column | Type | Description |
|---|---|---|
| booking_idPK | INT | Unique booking identifier |
| user_id | VARCHAR(20) | Hopper user who made the booking |
| booking_date | DATE | Date the booking was made |