Zapytanie SQL, aby znaleźć duplikaty w kolumnie
SELECT name, COUNT(email)
FROM users
GROUP BY email
HAVING COUNT(email) > 1
Unusual Unicorn
SELECT name, COUNT(email)
FROM users
GROUP BY email
HAVING COUNT(email) > 1