You are viewing a single comment's thread. Return to all comments →
Here's a Mysql solution that passes, although I'm still a little hazy on how the 'group by' function works here.
select country.continent, truncate(avg(city.population), 0) from city inner join country on city.countrycode = country.code group by country.continent
Seems like cookies are disabled on this browser, please enable them to open this website
Average Population of Each Continent
You are viewing a single comment's thread. Return to all comments →
Here's a Mysql solution that passes, although I'm still a little hazy on how the 'group by' function works here.
select country.continent, truncate(avg(city.population), 0) from city inner join country on city.countrycode = country.code group by country.continent