Selecting symmetric rows in sql

I want to make a SQL query to select symmetric rows
for example we have two columns A and B,
Select rows which have x,y and y,x existing in the table.
A and B are of type uuid
return x,y or y,x any
Was this page helpful?