RevOps & Sales Analytics Path · Mission 5 of 30Starter

Deals over $50K by account

Multi-column filter + JOIN + ORDER BY — the shape of a typical enterprise-tier worklist

The Brief

Teddy OseiDirector of Revenue Operationsrevops

The CRO wants a worklist for this week's enterprise deal review. Give me every opportunity where `amount > 50000`, joined to the account, ordered by amount descending. Return `opportunity_id`, `company_name`, `stage`, and `amount`. Include every stage (open and closed) — she wants to see everything in that size band.

You'll practice

WHEREORDER BYTop-N

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_accountsdim6 columns
ColumnTypeKey
account_idINTPK
company_nameTEXT
industryTEXT
employee_bandTEXT
countryTEXT
created_dateTEXT

Hints (3)

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

Hint 1

INNER JOIN `revops_opportunities` to `revops_accounts` on `account_id = account_id`. Every opportunity has an account, so INNER vs LEFT doesn't matter for the row count.

Hint 2

`WHERE amount > 50000` — strictly greater, not >=. $50K is the trigger, $50,001 is the first row that matches.

Hint 3

`ORDER BY amount DESC`. You should see 30 rows spanning open pipeline, Closed-Won (including expansions), and Closed-Lost.