mysql: add average-population-of-each-continent
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…
Reference in New Issue