Symmetric Pairs

  • + 0 comments

    select a.x, a.y from functions A join functions B on a.x = b.y and b.x = a.y group by a.x, a.y
    having count(a.x)>1 or a.x < a.y order by a.x;