European city which population is closest for defect to the median of European population?
I try with this code, but I always have an error with the where condition in the subquery
Select city.name,city.population from city
join country
on city.countrycode=country.code and country.continent='europe'
where city.population<(
avg(country.population)
where country.continent='europe')
order by city.population desc;