Find Records That Contain Duplicate Values
select email
from (
select
email,
row_number() over (
partition by email
order by email
) as row_num
from mailing_list
) t
where t.row_num > 1;select
email
count(*)
from mailing_list
group by email
having count(*) > 1
order by email;Last updated