All practice problems Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.
Data Engineering · SQL · Intermediate
SQL interview question: Off by a Hundred
How many rupees (₹) did Viman Nagar actually collect? (Each payment once.) The revenue number has too many zeros.
The problem
- How many rupees (₹) did Viman Nagar 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.