Amazon
Interview Core Track · Medium · 25 min
Store Refund Share
Retail finance wants to compare refund pressure by store for April 2024 orders. Return store_id, total_sales, refunded_amount, and refund_pct rounded to two ...
Company labels are directional practice context, not official interview guidance.
Objective
Practice query basics through a Amazon-tagged business scenario.
Approach
Use this track to improve speed, edge-case handling, and accuracy under timed conditions.
Company context
Company labels are directional practice context, not official interview guidance.
Retail finance wants to compare refund pressure by store for April 2024 orders. Return store_id, total_sales, refunded_amount, and refund_pct rounded to two decimals. Sort by store_id.
store_sales
| store_id | order_id | net_amount | 2 |
|---|---|---|---|
| 1 | 1001 | 120.00 | 2024-04-02 |
| 1 | 1002 | 80.00 | 2024-04-05 |
| 2 | 2001 | 200.00 | 2024-04-07 |
| 2 | 2002 | 150.00 | 2024-04-08 |
| 3 | 3001 | 90.00 | 2024-04-10 |
store_refunds
| refund_id | order_id | refund_amount | 2 |
|---|---|---|---|
| 501 | 1002 | 20.00 | |
| 502 | 2002 | 45.00 |
SQL workspace
Run queries against the protected question data, then submit once the result shape looks right.
Sign in to run SQL
Create a free account or sign in before running queries against protected question data.