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

What financial statuses exist?

Use SELECT DISTINCT to enumerate the canonical set of values in a column. Critical first step before any filter or rollup — you need to know what's in the column before you can write a WHERE clause against it.

The Brief

Devon ParkSenior Analyst, Marketingecom-ops

Quick sanity-check before I write tomorrow's revenue report. Give me every distinct `financial_status` value that appears in `ecom_orders`. Just the one column. Raw values — don't normalize, I want to see exactly how Shopify stores them. Mira and the CFO disagree on which statuses count as 'revenue' and I need the canonical list before that meeting.

You'll practice

DISTINCTExploration

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

Statuses repeat across many order rows — you want the unique list, not a count. The SQL keyword for that is `DISTINCT`.

Hint 2

`SELECT DISTINCT financial_status FROM ecom_orders` returns one row per unique value, no GROUP BY needed.

Hint 3

You should see seven statuses: paid, refunded, partially_refunded, voided, pending, partially_paid, authorized. That's the Shopify canon.