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
|
1701 Discussions
|
Please Login in order to post a comment
select country.continent , FLOOR(AVG(city.population)) from country join city on country.code = city.countrycode group by country.continent
select country.continent, floor(avg(city.population)) from city join country on country.code = city.countrycode group by country.continent;
SELECT COUNTRY.CONTINENT, FLOOR(AVG(CITY.POPULATION)) FROM CITY JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE GROUP BY COUNTRY.CONTINENT
SELECT COUNTRY.CONTINENT, FLOOR(AVG(CITY.POPULATION)) FROM CITY JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE GROUP BY COUNTRY.CONTINENT
SELECT FLOOR(AVG(CT.POPULATION)) , CR.CONTINENT FROM CITY CT JOIN COUNTRY CR ON CT.COUNTRYCODE = CR.CODE GROUP BY CR.CONTINENT ORDER BY CR.CONTINENT;
I wrote this query I am unable to get the issue in the query as it is saying result is not correct