I want to move all fields of all records that have a duplicate email address to another table so that I can sort through those at my leisure while still having the previous table without any duplicates for email blasts. I have this code to find duplicate email records, but I'm not sure how to move them to a new table and delete them from the original.
Code:
Select a.Email,
a.*
from subscribers a
join
(select Email
from subscribers
group by Email
having count(*) > 1) b
on a.Email = b.Email
order by a.Email