-
☆ A M B ☆
- 24,524 Posts
SELECT wua.internalKey, wua.fullname, wua.email, wua.logincount, wua.lastlogin
FROM cms_web_user_attributes wua
INNER JOIN (
SELECT email
FROM cms_web_user_attributes
GROUP BY email
HAVING count(email) > 1
) dup ON wua.email = dup.email
ORDER BY wua.email
This gets me all the users with duplicate email addresses. The problem I'm having is to figure out where to put the join to bring in the username from cms_web_users. Can anybody help me out here?
-
☆ A M B ☆
- 24,524 Posts
Thank you! That did the job perfectly.
Now to tweak the script that imports the .csv into the user tables to check duplicate emails as well as duplicate usernames!