Coding tips
MySQL Delete Duplicate Rows but Keep One (Find Them First)
Find duplicates with GROUP BY and HAVING, preview them with ROW_NUMBER(), then delete all but one with a self-join. Error 1093, NULLs, case and spaces, and a UNIQUE key.