I am having so much trouble trying to work this out. Can somebody help me?
I have a table with colA and colB and these as the values for each row:
colA ColB
2 1
1 2
When selecting in this table, I want to retrieve just one row since the values are inverted. If 2 implies 1, 1 implies 2, so they are equal and I don't want two rows as a return.
Is there any way of doing a SQL query and get the result I want? For example, just one row with colA = 1, colB = 2.