Find Duplicate Records In Table Without Unique Id
delete from mailing_list
where ctid not in (
select min(ctid)
from mailing_list
group by email
);delete from mailing_list ml1
using mailing_list ml2
where ml1.ctid < ml2.ctid
and ml1.email = ml2.email;Last updated