Shaozhong SHI schrieb am 24.10.2022 um 16:44: > There are pair ids. Each pair is repeated. > > id1 id2 > 1 2 > 2 1 > 3 4 > 4 3 > > How to only select 1 unique pair for each? select distinct least(id1,id2), greatest(id1,id2) from the_table
pgsql-sql by date:
Соглашаюсь с условиями обработки персональных данных