Standardise City Names
The same city appears as Manila, manila and MANILA. Update every customer's city so that its first letter is upper case and all other letters are lower case (so porto alegre and Porto Alegre both become Porto alegre).
Check query. After your statements run, this query is run on the changed data and its result is compared with the expected one:
SELECT DISTINCT city
FROM customers
ORDER BY city;
Hint 1
Combine UPPER(SUBSTR(city, 1, 1)) and LOWER(SUBSTR(city, 2)) with ||.
Reference solution
UPDATE customers
SET city = UPPER(SUBSTR(city, 1, 1)) || LOWER(SUBSTR(city, 2));
SET can use any expression of the row's own columns, so one statement can clean thousands of rows. Do cleaning updates once, check with a query like SELECT DISTINCT city (the check above), and consider a CHECK constraint or application rule so the mess does not return. Note the compromise: this rule makes Porto alegre instead of Porto Alegre. Real cleaning often needs a mapping table of correct spellings for exactly this reason.