i have a table eng-jap
which is essentially just a translation so having an english and a japanese column. a script i made somehow cause every insert to have a clone and thus 1000s of duplicate entries in this table, for example:
duplicate example A
eng jap
"mother washes every day" "母は毎日洗濯する"
"mother washes every day" "母は毎日洗濯する"
if it were just one column i could use the query:
SELECT eng, COUNT(*) c FROM `eng-jap` GROUP BY eng HAVING c > 1
but since the table can legitimately have a duplicates in eng or jap, as long as its not in both. for example:
duplicate example B
eng jap
"mother washes every day" "母は毎日洗濯する"
"every day mother washes" "母は毎日洗濯する"
this is to allow one sentence to have more than one translation. so i need to alter the query to find duplicates as a combination of both columns i guess you could say.
once again to be clear. example B is fine, i want to select all duplicates like example A so i can make a scrip to remove one of all of the duplicates. please and Thank you!