Here is my sql data
id location1 location2 distance
--------------------------------------------
1 Paris Marseille 150km
2 Paris Lyon 200km
3 Paris Strasbourg 300km
4 Paris Toulouse 350km
5 Marseille Paris 150km <-(almost) duplicate of row 1
6 Marseille Lyon 250km
...
Because the distance between Paris -> Marseille equals to Marseille -> Paris I want to remove one of the duplicated rows.
Table contains almost 1M rows, and half of them duplicates.How am I able to remove this duplicates for data on such a large table.