RevOps & Sales Analytics Path · Mission 9 of 30Easy

Average deal size by region

AVG + JOIN + GROUP BY — the per-segment average every regional leader asks for

The Brief

Teddy OseiDirector of Revenue Operationsrevops

CRO wants to know where our big deals are landing geographically. Join opportunities to users, group by `region`, compute average deal size across ALL opportunities (open + closed, every stage — she wants the full book, not just historical wins). Return `region` and the rounded `avg_amount`. Order by avg_amount desc.

You'll practice

AVGGROUP BYJOIN

Tables & columns available

revops_opportunitiesfact10 columns
ColumnTypeKey
opportunity_idINTPK
account_idINTFK → revops_accounts
owner_user_idINTFK → revops_users
nameTEXT
stageTEXT
amountREAL
close_dateTEXT
created_dateTEXT
is_closedINT
is_wonINT
revops_usersdim6 columns
ColumnTypeKey
user_idINTPK
full_nameTEXT
role_titleTEXT
regionTEXT
hire_dateTEXT
statusTEXT

Hints (3)

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

Hint 1

INNER JOIN on `owner_user_id = user_id` — same as mission 3. Drop no rows; keep all stages.

Hint 2

Group by `region`. `AVG(amount)`. Round to the nearest dollar with `ROUND(AVG(amount), 0)` or `ROUND(AVG(amount))`.

Hint 3

You should see 5 rows — one per active region that has at least one opportunity. Regions with no opps (e.g. the Director's 'Global' region, since the Director owns zero deals directly) don't appear.