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
|
1685 Discussions
|
Please Login in order to post a comment
select cn.Continent,floor(avg(c.population)) from city c join country cn on c.countrycode = cn.code group by cn.Continent;
ms sql server :
select co.continent, floor(avg(ci.population)) from city ci join country co on ci.countrycode = co.code group by co.continent
SELECT COUNTRY.CONTINENT, FLOOR(AVG(CITY.POPULATION)) FROM CITY JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE GROUP BY COUNTRY.CONTINENT
MYSQL- SELECT COUNTRY.CONTINENT, FLOOR(AVG(CITY.POPULATION)) FROM CITY INNER JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE GROUP BY COUNTRY.CONTINENT;