Symmetric Pairs

  • + 0 comments

    select a.x, a.y from functions a join functions b on a.y=b.x and a.x=b.y group by a.x, a.y having (count(*)>1 and a.x=a.y) or a.x