Business Intelligence Path · Mission 18 of 25Hard

Three-table join: who sold what where?

Join 3+ tables to build a denormalized analytical view

Back to Business Intelligence

The Brief

Marcus WebbVP of Salessales-ops

Build me the full picture: for each active sales rep, show their name, region name, product category (normalized), and total revenue. Group by rep, region, and category. I need to see where our reps are selling which product lines. Only include combinations that actually have sales.

You'll practice

Multi-table JOINDenormalization

Tables available

fact_salesdim_employeesdim_productsdim_regions

Hints (3)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

Join four tables: dim_employees -> fact_sales -> dim_products and fact_sales -> dim_regions

Hint 2

Filter to active employees in the Sales department

Hint 3

GROUP BY employee name, region_name, and LOWER(category)