Why this matters
Who this is for
BI Developers, Analytics Engineers, and Analysts who deliver recurring dashboards and need robust, readable SQL outputs.
Prerequisites
- Comfort with basic SQL: SELECT, JOIN, GROUP BY, WHERE, HAVING.
- Understanding of fact vs. dimension tables and primary keys.
- Basic window functions and date functions familiarity.
Learning path
- Refresh on SQL joins and aggregation levels.
- Practice defining grains and using date truncation.
- Drill on avoiding double counting with pre-aggregation.
- Add window functions for ranks and percents.
- Build a reusable KPI dataset and validate against known totals.
Next steps
- Complete the exercises below and run the quick test.
- Refactor an existing messy report query following the step-by-step pattern.
- Set up a personal SQL snippet library for common report-ready patterns.
Note: The quick test is available to everyone; only logged-in users get saved progress.