I have a MySql database with 5 fields. There are two critical fields, Cfield1 and CField2. If for any two entries the values of Cfield1 are identical AND the values of Cfield2 are also identical, then I want to delete one of the two -- it does not matter which.
If there are three that are identical I want only 1 to remain and delete the rest.
I presume that the first thing to do is sort the db on Cfield1 and then Cfield2, but I am not sure what the rest of the coding should be.