LOWER SQL function: Why we love it
We’ve all been there:
- In a user signup form, user A typed in their name as
Kira Furuichi
, user B typed it in asjohn blust
, and user C wroteDAvid KrevitT
(what’s up with that, David??) - Your backend application engineers are adamant customer emails are in all caps
- All of your event tracking names are lowercase
In the real world of human imperfection, opinions, and error, string values are likely to take inconsistent capitalization across different data sources (or even within the same data source). There’s always a little lack of rhyme or reason for why some values are passed as upper or lowercase, and it’s not worth the headache to unpack that.
So how do you create uniformity for string values that you collect across all your data sources? The LOWER function!