How would you solve scenario-based analytics questions using SQL for a typical Tiger Analytics client dataset?
Using the provided customers, orders, and products tables, write a query for completed orders during 2025. Return the highest-revenue product category for each region and calendar month. Exclude records that cannot be associated with a customer region or product category.
Output
- One row per region and month
- Columns:
report_month, region, category, completed_orders, revenue, and category_rank
- Include only the highest-revenue category per region and month; break revenue ties alphabetically by category
- Order by
report_month, then region