Sales channel check
Mock interview. You're interviewing for a data analyst job at a commerce platform that runs online stores, in-person point of sale and wholesale (B2B) selling for merchants. The interviewer says: "Give me a quick read on 2026 so far for the merchants who joined this year: where do they sell, and how much goes through our fast checkout?"
merchant_monthly_sales: one row per merchant, month and channel (online, pos or b2b), with sales (gmv), the part paid through the fast checkout (fast_checkout_gmv, online only) and the part sold to buyers in another country (cross_border_gmv).
Question 1: Sales by channel
"For each month, show total sales and each channel's share."
Expected output
- Columns
month,gmv,online_pct,pos_pct,b2b_pct(percentages rounded to 1 decimal); sorted bymonth
Example of the shape (made-up values):
| month | gmv | online_pct | pos_pct | b2b_pct |
|---|---|---|---|---|
| 2025-01-01 | 100000.00 | 80.0 | 15.0 | 5.0 |
Hints, the later questions and the answer come with Pro.
Question 1 of 2
Write your query here. Ctrl + Enter submits.