I want to eliminate any row in which the value of Column A appears in Column B along with the value of Column B appearing in Column A.
For example
id | column_A | column_B
------------------------
1 | quick | brown
2 | quick | fox
3 | brown | quick
4 | lazy | dog
5 | fox | quick
I am trying to get a result set
id | column_A | column_B
------------------------
1 | quick | brown
2 | quick | fox
4 | lazy | dog
As you can see the rows with ids 3 & 5 are eliminate as, in the row with id = 3 the value of column_a = brown and column_b = quick which matches the transposed values of id = 1 where column_a = quick and column_b = brown. Similarly with the row with id = 2 eliminating the row where id = 5.