This table only has 2 columns. There are rows considered "duplicate" when both of the row's columns match.
That is:
col1 col2
X X
X X
X Y -- this is not a duplicate
I want to delete the duplicates but leave at least one of them. It doesn't matter which because they are the same thing.
I've used variations of IN
and JOIN
, but I can't seem to get the DELETE outer query to only delete one of each row with duplicate columns.