Тестовые данные
Select 1 as Quarter, 'Albany, NY' as city1, 'Orlando, FL' as city2
into #AirData
Union
Select 2, 'Albany, NY', 'Orlando, FL' Union
Select 3, 'Albany, NY', 'Orlando, FL' Union
Select 4, 'Albany, NY', 'Orlando, FL' Union
Select 4, 'Albany, NY', 'Los Angeles, CA (Metropolitan Area)' Union
Select 4, 'Albany, NY', 'Washington, DC (Metropolitan Area)' Union
Select 2, 'Albany, NY', 'Atlanta, GA (Metropolitan Area)' Union
Select 3, 'Albany, NY', 'Atlanta, GA (Metropolitan Area)' Union
Select 1, 'Albany, NY', 'Atlanta, GA (Metropolitan Area)' Union
Select 4, 'Albany, NY', 'Atlanta, GA (Metropolitan Area)'
и запрос:
select city1, city2
from #AirData
group by city1, city2
having count(distinct quarter) = 4