I want to delete duplicate rows based on two columns but need to keep 1 row all of them.
Duplicate rows can be more than two rows like,
ID NAME PHONE
-- ---- ----
1 NIL 1234
2 NIL 1234
3 NIL 1234
4 MES 5989
I want to delete any of 2 rows from above 3 and keep 1 row.
After you have executed the delete statement, enforce a unique constraint on the column so you cannot insert duplicate records again,