menemukan duplikat SQL memiliki

SELECT username, email, COUNT(*)
FROM users
GROUP BY username, email
HAVING COUNT(*) > 1
Obedient Ocelot