Want to find duplicate records in a MySQL Database. This could be written with:
SELECT address, count(id) as cnt FROM list
GROUP BY address HAVING cnt > 1
Which gives me:
101 Saint ST 3
I want to pull it so that it shows each row that is duplicate. example like:
SIM JANE 101 Saint ST
JOHN SMITH 101 Saint ST
Anyone have any idea how it could be done? I'm trying to avoid doing the first one then looking up the duplicates with a second query in the code.