Runtyme
All practice problems

Data Engineering · SQL · Hard

SQL interview question: Twice Paid?

How many payments were received for Connaught Place's orders? Some customers seem to have paid twice.

The problem

  • How many payments were received for Connaught Place'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.

Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.