Possible Duplicate:
How to delete duplicate rows with SQL?
I have a table with records and I want to delete all duplicate records
DELETE FROM 'table'
WHERE 'field' IN
(
SELECT 'field' FROM 'table' GROUP BY 'field'
HAVING (COUNT('field')>1)
)
Why isn’t this working?
Maybe you can explore with the command
DISTINCTto select only unique records based in a field.You can create a new table with the unique entries based.
As an example…