PublicPosts/Finding duplicate records.sql

5 lines
101 B
MySQL
Raw Normal View History

2024-06-13 02:25:20 +00:00
SELECT COL_TO_CHECK, COUNT(*)
FROM table1
GROUP BY COL_TO_CHECK
HAVING COUNT(*) > 1
ORDER BY COUNT(*)