SELECT
col,
COUNT(col)
FROM
table_name
GROUP BY col
HAVING COUNT(col) > 1;
Find duplicates values in a MySQL table
This post brought to you by RocketGeek, ButlerBlog, and the following:
A curated collection of code snippets for WordPress