Use adaptation of this code to mark all those records with Counting Duplicate Rows in a Table, and then delete them with DELETE I am assuming that by delete any number repeated three times or less of this column (COW_ID) you mean delete all records that repeat 3 times or less. If you formulate it like that then that means that only records that appear 4x or higher will remain. Nevertheless, you can change condition for deletion however you want in the DELETE statement 😉
... View more