mysql: add average-population-of-each-continent

master
lub 6 years ago
parent e86ffe9d4c
commit c2ce85ad4c

@ -0,0 +1,4 @@
SELECT COUNTRY.CONTINENT, FLOOR(AVG(CITY.POPULATION))
FROM CITY
INNER JOIN COUNTRY ON COUNTRY.CODE = CITY.COUNTRYCODE
GROUP BY COUNTRY.CONTINENT
Loading…
Cancel
Save