Runtyme
All practice problems

Data Engineering · SQL · Hard

SQL interview question: Ledger Line

How many rupees (₹) did Koramangala actually collect? (Each payment once.) The revenue number has too many zeros.

The problem

  • How many rupees (₹) did Koramangala actually collect? (Each payment once.)

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 the unit column. Two apps, two units, and some are messy.

What this teaches (spoiler)

Never sum values in different units. Normalise units (and deduplicate) before aggregating money.

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