📖 Story
Delhivery · Shipment Data Quality
Delhivery's planning team counts shipments per destination city to decide where to open new delivery centres. dest_city is free text from thousands of sellers, so the same city arrives in many spellings: 'Bengaluru', ' BENGALURU', 'bengaluru', 'Kolkata' and 'Kolkata ' with a trailing space, and even 'New Delhi' with two spaces in the middle. A straight GROUP BY dest_city treats every variation as a different city, so no city looks big enough to justify a new centre. The report also needs a delivered count, where transit_days IS NULL means the parcel hasn't been delivered yet.