Exclua C1 do tableName C1 INNER JONE TableName C2 onde C1.ID> C2.ID e C1.UNICE_FIELD = C2.Unique_Field;

SELECT name, email, COUNT(name)
FROM student_contacts
GROUP BY name
HAVING COUNT(name) > 1;
vicky chary