This shows the average occupancy (num_pax) of flights that have an airport of "SPAIN" as an exit
How can I convert this for PostgreSQL please?
SELECT AVG(number_pax)
FROM flights f,airports a
WHERE f.departure_airport=a.id_airport
AND a.country LIKE "ESPAÑA";