I'd like to save the result of the following query in an sql variable and than subtract that variable from the main table city to get my desired result.
SELECT *
FROM
city b1,city b2
WHERE
b1.from_city = b2.to_city
and b1.to_city = b2.from_city
Any help will be much appreciated.