I\'m working on a homework project and I\'m supposed to perform a database query which finds flights either by the city name or the airport code, but the flights
flights
Why can't it just use AND in the ON clause? For example:
AND
ON
SELECT * FROM flights INNER JOIN airports ON ((airports.code = flights.fairport) AND (airports.code = flights.tairport))