1
select distinct country1.name, country2.name
from (select distinct geo1.country as c1, geo2.country as c2
from geo_mountain geo1 join
geo_mountain geo2
on geo1.mountain = geo2.mountain and
not(geo1.country = geo2.country)
) mountain,
country country1, country country2
where country1.code = mountain.c1 and country2.code = mountain.c2
問題は、私は、各値のカップル2回、1時間を得ることであるcountryA、countryB、別の時間countryB、countryAどのようにすることができますIグラム彼らはすでに結果にあるので、値の2番目のカップルの除外?