Omnichannel Retail Analytics Path · Mission 8 of 25Medium

Store-level AOV — store_walk_in

AVG aggregate with WHERE pre-filter (units > 0 to skip foot-traffic-no-purchase), JOIN, multi-key ORDER BY. The in-store AOV ranking every store director watches.

Back to Omnichannel Retail Analytics

The Brief

Marcus ChenRegional Directorretail-ops

Store comp prep. Average order value for in-store purchases only (channel = 'store_walk_in', units > 0 — drop the foot-traffic-no-purchase rows). Top 10 stores. Four columns: store_id, store_name, order_count, aov. ROUND aov to 2 decimals. ORDER BY aov DESC, store_id ASC.

You'll practice

AVGGROUP BY storeJOIN

Tables & columns available

fact_ordersfact10 columns
ColumnTypeKey
order_idINTPK
sku_idINTFK → dim_skus
store_idINTFK → dim_stores
channelTEXT
customer_zipTEXT
order_tsTEXT
unitsINT
gross_amountREAL
discount_amountREAL
fulfillment_costREAL
dim_storesdim7 columns
ColumnTypeKey
store_idINTPK
store_nameTEXT
regionTEXT
cityTEXT
stateTEXT
sq_ftINT
opened_dateTEXT

Hints (4)

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

Hint 1

JOIN fact_orders to dim_stores.

Hint 2

Filter channel = 'store_walk_in' AND units > 0 (CRITICAL — skip foot-traffic-no-purchase).

Hint 3

AVG(gross_amount) for AOV, ROUND to 2 decimals.

Hint 4

GROUP BY store_id and store_name.