This is a SQL query question.
If you have a table like this:
ID1 ID2
1709 1689
1689 1709
1934 1501
1501 1934
And you want to retrieve like this:
ID1 ID2
1709 1689
1934 1501
How would you do that? Please note that (1709, 1689) and (1689, 1709) are similar pairs just the IDs being shifted. My purpose is to get a single tuple out of these similar tuples.