What are the benefits of using star schemas versus Snowflake schemas for analytics?
For the practical portion, write a query that produces a category-level analytics result from dimensional sales data. The result should retain categories without qualifying sales so the modeling and reporting implications can be discussed.
Output
- One row per category, including categories with no qualifying sales.
- Columns:
category_name, total_units, and total_revenue.
- Include sales from 2025-01-01 through 2025-03-31, inclusive. Sort by
total_revenue descending, then category_name ascending.