Use the following SQL statement for finding duplicates in a table. I think this should work for any relational database, not only MySQL.