Average Population of Each Continent

  • + 0 comments
    select 
    	cn.continent,
    	floor(avg(ci.population))
    from country cn
    join city ci
    on ci.countrycode = cn.code
    group by cn.continent;