I have a table with the columns: city, x, y
I need to select the distance between all the cities without duplications
the results should look like this
city1,city2,distance
but
I shouldn’t get city2,city1,distance ( since I already got the distance between those cities…
what is the correct SQL query for that…
thanks!
1 Answer