Write a query to identify top-performing products over a rolling 30-day window.
Use the provided product, order, and reporting-date tables. Calculate product revenue for each reporting date using the inclusive 30-day period ending on that date. Include products ranked among the top three for each reporting date, including ties.
Output
- One row per qualifying product and reporting date.
- Columns:
reporting_date, product_id, product_name, rolling_revenue, and performance_rank.
- Order by
reporting_date, performance_rank, and product_id.