You are viewing a single comment's thread. Return to all comments →
WITH CTE AS (SELECT DISTINCT a.x, a.y FROM functions a INNER JOIN functions b on a.x = b.y and a.y=b.x WHERE a.x <= a.y ORDER BY a.x ASC ) SELECT a.x, a.y FROM CTE a LEFT JOIN functions b ON a.x =b.x and a.y = b.y GROUP BY a.x, a.y HAVING (COUNT(*) > 1 AND a.x = a.y) OR (a.y>a.x)
Seems like cookies are disabled on this browser, please enable them to open this website
Symmetric Pairs
You are viewing a single comment's thread. Return to all comments →