Search ⌘K
Amazon
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 ...

Interview Core Track
Medium
25 min
query basics
aggregation
joins

Company labels are directional practice context, not official interview guidance.

Timer 00:00
Back to practice

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.

Prereq: query basics
Prereq: filtering

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 INT
order_id INT
net_amount NUMERIC(10
2
store_idorder_idnet_amount2
11001120.002024-04-02
1100280.002024-04-05
22001200.002024-04-07
22002150.002024-04-08
3300190.002024-04-10
store_refunds
refund_id INT
order_id INT
refund_amount NUMERIC(10
2
refund_idorder_idrefund_amount2
501100220.00
502200245.00
Editor
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.