Business Intelligence Path · Mission 4 of 25Starter

Which region should we expand next?

Use LEFT JOIN to include regions with no sales, and handle NULLs with COALESCE

Back to Business Intelligence

The Brief

Victoria ChenCEOslack-dm

We're evaluating regional expansion for next year. Can you pull a table of all regions with their total revenue and number of sales? I want ALL regions listed even if they haven't had any sales — those gaps are exactly what I'm looking for. Make sure zeros show as 0, not NULL.

You'll practice

LEFT JOINCOALESCENULL handling

Tables available

dim_regionsfact_sales

Hints (3)

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

Hint 1

Start from dim_regions and LEFT JOIN fact_sales — this keeps all regions even with no matching sales

Hint 2

Use COALESCE(SUM(revenue), 0) so regions with no sales show 0 instead of NULL

Hint 3

GROUP BY region_id and region_name, then ORDER BY total_revenue DESC to surface the biggest opportunities