with t as
(
select 'ВАСЯ' usr1, 'ПЕТЯ' usr2, 'ДРУЖБА' rel from dual
union all
select 'ВАСЯ' usr1, 'ПЕТЯ' usr2, 'СЛУЖБА' rel from dual
union all
select 'ПЕТЯ' usr1, 'ВАСЯ' usr2, 'ЛЮБОВЬ' rel from dual
union all
select 'СЕРЕЖА' usr1, 'ВАСЯ' usr2, 'СИМПАТИЯ' rel from dual
)
select usr1, usr2, rel
from
(select usr1,
usr2,
rel,
row_number() over(partition by usr1 || usr2 order by usr1 || usr2) rn
from t)
where rn = 1