I have duplicate rows in my table, how can I delete them based on a single column\'s value?
Eg
uniqueid, col2, col3 ... 1, john, simpson 2, sally, ro
DELETE FROM table WHERE uniqueid='1' AND col2='john' Or you change col2='john' to col2='johnny'. Depends on which record you want to delete.
DELETE FROM table WHERE uniqueid='1' AND col2='john'
col2='john'
col2='johnny'
How did you end up with two same "unique" IDs in the first place?