I'm trying to find a way to get distinctive pairs.
Suppose the table has 3 fields: id, city1 and city2.
Sample Data:
1, New York, Los Angeles
2, New York, Philadelphia
3, New York, Houston
4, Los Angeles, New York
5, Los Angeles, Houston
6, Houston, New York
7, Houston, Los Angeles
I would like the output to only include distinct pairs, regardless of the order of which column position they are in.
Sample Output:
New York, Los Angeles
New York, Philadelphia
New York, Houston
Los Angeles, Houston