This will count how many of each email address are in the table, not counting the case of the email address. For example, " test@test.com " and " TEST@TEST.COM " will be treated as the same email address. It also just shows duplicates, any email address that just occurs once will not be returned. If you want to return them, simply omit the "HAVING" clause.
SELECT LOWER(email) EmailAddress, COUNT(*) EmailCount FROM user_changes GROUP BY LOWER(email) HAVING COUNT(*) > 1;
BG100 source share