I am writing a MySQL query where I can get all the records from a user table with duplicate email addresses.
This is the request that I still have .. my PHPMyAdmin continues to load:
select personal_email, userid from user where personal_email in ( select personal_email from user group by personal_email having count(personal_email) > 1);
If I use the following query, I receive all double letters only once:
select personal_email, count(personal_email) from user group by personal_email having count(personal_email) > 1
The goal is to get all records with duplicate emails.
source share