SpinTheMic
Pro

Interview practice question

Same city counted several times

Data Analyst · SQL for Analytics · Beginner

A report of customers by city shows "New York", "new york", "New York " and "NYC" as separate rows. How do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Standardise case and whitespace (LOWER, TRIM).
  • Mapping table for synonyms (NYC).
  • Fix at source/ETL.
  • Group on cleaned value.
  • Document cleaning rules.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics