you’d have to explain what didn’t work then because you either haven’t described the problem accurately or you have implemented the solution incorrectly, probably because there were more columns involved than described.
Any preference as to which n-1 records of n records should be deleted? Or are all records the same and should just deleting n-1 random records out of n do the job?
The duplicate record has the same company number,
so for example company 1 has an invoice number 12345
this invoice (12345) is in the table twice with the same company (1)
so i need to delete one of those whole records
company 2 is in the table three times with an invoice number of 5678
so i need to get rid of two of those records