Kueri ini akan memberi Anda daftar alamat email dan berapa kali digunakan, dengan alamat yang paling sering digunakan terlebih dahulu.
SELECT email,
count(*) AS c
FROM TABLE
GROUP BY email
HAVING c > 1
ORDER BY c DESC
Jika Anda ingin baris penuh:
select * from table where email in (
select email from table
group by email having count(*) > 1
)