You are viewing a single comment's thread. Return to all comments →
SELECT IF(X > Y, Y, X) AS c1, IF(X > Y, X, Y) AS c2 FROM Functions GROUP BY c1, c2 HAVING COUNT(*) > 1 ORDER BY c1 ASC
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 →
SELECT IF(X > Y, Y, X) AS c1, IF(X > Y, X, Y) AS c2 FROM Functions GROUP BY c1, c2 HAVING COUNT(*) > 1 ORDER BY c1 ASC