All practice problems Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.
Data Engineering · SQL · Hard
SQL interview question: The Echo
How many payments were received for Banjara Hills's orders? Some customers seem to have paid twice.
The problem
- How many payments were received for Banjara Hills's orders?
You'll use: SQL (SQLite) · SELECT & WHERE · JOIN · GROUP BY · TRIM & datetime() · Data cleaning
Solve it (expert level)3–6 min · You write SQL
Show a hint
Look at payment_id. Is it unique?
What this teaches (spoiler)
Pipelines retry. Deduplicate on a real key, and make loads idempotent so retries don't double count.