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
|
1670 Discussions
|
Please Login in order to post a comment
mysql
Why FLOOR insted of ROUND function? FLOOR(1234.56) will give you 1234.
ROUND(1234.56, 0) will give you 1235.
why is my query not working?
select country.continent , round(avg(city.population),0) from country join city on city.countrycode = country.code group by country.continent;
SELECT CC.CONTINENT, FLOOR(AVG(C.POPULATION)) FROM CITY C JOIN COUNTRY CC ON CC.CODE = C.COUNTRYCODE GROUP BY CC.CONTINENT