In my table are a lot of duplicate rows. I have a SELECT that provides the data I want to delete but how can I do this? Whatever I try I get an error.
SELECT *
FROM tablename t
WHERE NOT EXISTS (
SELECT 1
FROM tablename t2
WHERE t2.column = t.column
HAVING COUNT(*) = 1
)