You are viewing a single comment's thread. Return to all comments →
SELECT f1.x, f1.y FROM functions f1 JOIN functions f2 ON f1.x = f2.y AND f2.x = f1.y GROUP BY 1,2 HAVING f1.x < f1.y OR (COUNT(*) > 1 AND f1.x = f1.y) ORDER BY f1.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 →
For MySQL