Marketplace Seller Analytics Path · Mission 2 of 25Easy

Daily orders by marketplace

First INNER JOIN. Practice joining a fact (orders) to a dim (marketplaces), filtering on a date column with substring or LIKE, GROUP BY, and a two-level ORDER BY (descending on the metric, ascending on the dimension as tiebreaker).

Back to Marketplace Seller Analytics

The Brief

Beau RussoSenior Analyst, Marketplacemarketplace-ops

Daily standup at 11. Pull the order count by marketplace for 2025-12-12 (a peak Q4 day). Two columns: marketplace_name, order_count. Sort order_count descending, marketplace_name ascending. We compare day-of-week patterns across marketplaces — Etsy spikes on weekends, Amazon is steadier, eBay is auction-driven. Get the daily shape right and we can spot anomalies fast.

You'll practice

GROUP BYCOUNTdate_trunc

Tables & columns available

fact_ordersfact7 columns
ColumnTypeKey
order_idINTPK
listing_idINTFK → dim_listings
marketplace_idINTFK → dim_marketplaces
order_tsTEXT
unitsINT
gross_amountREAL
refundedINT
dim_marketplacesdim4 columns
ColumnTypeKey
marketplace_idINTPK
marketplace_nameTEXT
marketplace_fee_pctREAL
fba_supportedINT

Hints (4)

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

Hint 1

JOIN dim_marketplaces on marketplace_id to pull marketplace_name.

Hint 2

Filter substr(order_ts, 1, 10) = '2025-12-12' (order_ts is TEXT formatted YYYY-MM-DD HH:MM:SS).

Hint 3

GROUP BY marketplace_name, COUNT(*).

Hint 4

Two-level ORDER BY for stable output: order_count DESC, marketplace_name ASC.