「クリーンな」SQLソリューション(least()なし)が必要な場合 またはgreatest() )これもあなたの仕事をします:
select colA, colB from your_table
where colA > colB
or (colB, colA) not in (select colA, colB from your_table)
「クリーンな」SQLソリューション(least()なし)が必要な場合 またはgreatest() )これもあなたの仕事をします:
select colA, colB from your_table
where colA > colB
or (colB, colA) not in (select colA, colB from your_table)