E-commerce & Retail Analytics Path · Mission 5 of 30Starter

Orders over $200 by customer

Combine WHERE + ORDER BY to surface a worklist. The 'top-N candidates ordered by amount' pattern that sales-ops, retention, and CX teams pull every week.

The Brief

Mira CastellanosHead of Growthecom-ops

Retention's running a high-AOV concierge program — the team wants to call every customer who placed an order over $200 in the last cycle and personally thank them. Pull every order in `ecom_orders` where `total_price > 200`. Return order_id, customer_id, order_number, total_price. Order by total_price descending so the biggest fish are at the top of the list.

You'll practice

WHEREORDER BYTop-N

Tables & columns available

ecom_ordersfact13 columns
ColumnTypeKey
order_idINTPK
customer_idINTFK → ecom_customers
order_numberTEXT
financial_statusTEXT
fulfillment_statusTEXT
total_priceREAL
subtotalREAL
taxREAL
shippingREAL
discount_totalREAL
channelTEXT
created_dateTEXT
processed_dateTEXT

Hints (3)

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

Hint 1

`total_price > 200` is the filter (strictly greater than — $200 exactly doesn't qualify per the brief).

Hint 2

`ORDER BY total_price DESC` puts the biggest orders first.

Hint 3

You should see 8 rows. The two largest are tied at $287 — both happen to be holiday-window home/textile bundles.