Duplicate Customers
Some customers may have been entered twice. Treat two customers as the same person if their first_name and last_name are equal, ignoring upper/lower case.
Return first_name and last_name (both in lower case) and copies (how many customers share that name) for every name that occurs more than once. Sort by copies from high to low, then last_name, then first_name.
Hint 1
Group on the lower-cased first and last name.
Reference solution
SELECT LOWER(first_name) AS first_name,
LOWER(last_name) AS last_name,
COUNT(*) AS copies
FROM customers
GROUP BY LOWER(first_name), LOWER(last_name)
HAVING COUNT(*) > 1
ORDER BY copies DESC, last_name, first_name;
"Find the duplicates" is GROUP BY the columns that define sameness, plus HAVING COUNT(*) > 1. The real work is deciding what "the same" means: here, names that differ only in case. Real duplicate detection also trims spaces and compares emails or phone numbers. In an interview, say the definition out loud before you write the query.