Finding duplicate values in a SQL table

SELECT
    `id`, COUNT(*)
FROM
    `table`
GROUP BY
    id
HAVING 
    COUNT(*) > 1

Comments