How to delete duplicate entries from table without deleting single entry in SQL
Suppose there are 5 duplicate entries with same values in [MyTable] table, we have to keep only one entry in the table.
When we use the given code then 4 entries will be deleted
set rowcount 4delete from MyTable where Myid =4set rowcount 0