What I’m looking to do, is delete all duplicated where column A and column B are duplicate. For example:
A B C
-----------------
Apple Pear 11
Apple Pear 12
Apple Pear 13
Orange Apple 22
Orange Beer 21
Cinder Punch 30
Cinder Punch 31
Cinder Punch 32
Would result in:
A B C
-----------------
Apple Pear 11
Orange Apple 22
Orange Beer 21
Cinder Punch 30
Step 1: Move the non duplicates (unique tuples) into a temporary table
HERE, [column to remove duplicates by] = column names seperated by “COMMA”, so in your case A,B
Step 2: delete delete the old table
We no longer need the table with all the duplicate entries, so drop it!
Step 3: rename the new_table to the name of the old_table