We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Average Population of Each Continent
Average Population of Each Continent
Sort by
recency
|
1690 Discussions
|
Please Login in order to post a comment
select country.continent ,floor(avg(city.population)) from city,country where city.countrycode = country.code group by country.continent
select country.continent, floor(avg(city.population)) from city left join country on city.countrycode = country.code where country.continent is not null group by country.continent
Spent so much time, because of a detail...
Tip:
select co.continent,floor(avg(c.population)) from city c,country co where c.countrycode=co.code group by co.continent