Dette giver listen over dubletter:
SELECT firstname, lastname, COUNT(*)
FROM person
GROUP BY firstname, lastname
HAVING COUNT(*) > 1;
Hvis du ønsker at se tællingerne for hver række, skal du fjerne have-sætningen:
SELECT firstname, lastname, COUNT(*)
FROM person
GROUP BY firstname, lastname;