mysql tip: finding duplicated records

Found here: http://mysql-tips.blogspot.com/2005/04/mysql-find-duplicate-repords-example.html

select address, count(address) as cnt
from mailing_list
group by address
having cnt > 1
order by cnt;

Tags: , , ,

Post a Comment

You could use <code type="name"> to get your code colorized

Your email is never published nor shared. Required fields are marked *

Close
E-mail It