In my database I have ~67 000 rows but i have 12k duplicate rows with different key.
I would like to remove duplicates and save only one row.
Table name: seb_societe
Similar columns: nom, phone, adress, zip
I tried this, but it did not work:
DELETE
FROM seb_societe AS T
WHERE T.rowid < ANY (SELECT rowid
FROM seb_societe AS T2
WHERE T.rowid <> T2.rowid
AND T.nom = T2.nom
AND T.address = T2.address);
Can anyone advise why my attempt didn't work, or how to achieve my desired outcome.