Runtyme
All practice problems

Data Engineering · SQL · Warm-up

SQL interview question: Same City, Different Spelling

How many festival orders came from Kolkata? The Kolkata total looks suspiciously small.

The problem

  • How many festival orders came from Kolkata?

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 raw city values: SELECT DISTINCT city FROM fest_orders;

What this teaches (spoiler)

Normalise free text (TRIM, UPPER) before grouping or filtering, and validate it on the way in.

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