Apple
Foundations Track · Medium · 25 min
19 Apple Pay Volume
SELECT merchant_id, SUM(CASE WHEN LOWER(payment_method) = 'apple pay' THEN transaction_amount ELSE 0 END) AS volume FROM transactions GROUP BY 1 ORDER BY 2 D...
Company labels are directional practice context, not official interview guidance.
Objective
Practice aggregation through a Apple-tagged business scenario.
Approach
Use this track to lock in clean query structure, basic filtering logic, and confidence with grouped output.
Company context
Company labels are directional practice context, not official interview guidance.
SELECT merchant_id, SUM(CASE WHEN LOWER(payment_method) = 'apple pay' THEN transaction_amount ELSE 0 END) AS volume FROM transactions GROUP BY 1 ORDER BY 2 DESC;
This is a Pro question
Upgrade to Pro to unlock this prompt, the SQL workspace, and all 254 problems.
Upgrade to Pro — unlock all 254 problemsSQL 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.