Business Intelligence Path

The SQL toolkit under every BI job.
Window functions, star schemas, grain reasoning, dirty data.

The foundational SQL patterns BI Analysts, Analytics Engineers, and Power BI / Tableau developers reach for every day — window functions, ranking, YoY / MoM comparisons, moving averages, cohort analysis, grain reasoning, and multi-CTE reconciliation — applied against a realistic company operations star schema with 10 planted data quality issues. The skills here transfer directly into every vertical path on caseSQL.

See All Missions

31 missions (10 free · 21 Pro incl. 5 Master) · star schema · window-fn + dimensional-modeling focus

How It Works

1

Read the briefing

A Slack message from your manager

2

Explore the schema

5 tables in a star schema

3

Write your query

Full SQL editor with autocomplete

4

Get expert feedback

Graduated hints, not just pass/fail

Why This Path

Dimensional Modeling in Practice

A 5-table star schema (fact_sales, fact_targets + 3 dimensions) with trailing spaces, ghost regions, inactive employees, and casing drift — the exact patterns you’ll handle modeling real marts.

Window Functions End-to-End

RANK, ROW_NUMBER, LAG, LEAD, NTILE, PERCENT_RANK, SUM() OVER with framed windows, moving averages, YoY pivots, and running totals — the window-function curriculum most interviews screen on.

Grain Reasoning & Fan-Out Bugs

Mission 26 (“Why is our leaderboard off by 12x?”) drills the canonical BI mistake: a clean query, the wrong grain, a 12× inflated total. Pre-aggregated CTEs as the fix.

Transfers Into Every Vertical

The same window-function and grain-reasoning skills power Marketing, Finance, Provider, and Banking missions. Treat BI as the core, the vertical paths as the applied variants.

The Missions

Each mission is a real request from someone at the company. Difficulty increases as you go.

Starter5 missions
Easy5 missions
Medium5 missions
Hard5 missions
Expert6 missions
Master5 missions

The Database

A company operations star schema with 5 tables, 2,200+ rows, and 10 planted data quality issues. Trailing spaces that create phantom products, ghost regions that vanish from INNER JOINs, inactive employees inflating performance reports, and more.

dim_employees (50)dim_products (20)dim_regions (6)fact_sales (2,000)fact_targets (168)

dimension tables   fact tables

Learn the SQL the vertical paths all borrow from

Window functions, star-schema joins, grain reasoning — on a dataset with planted traps.

Looking for something different?

|