diff --git a/mysql/average-population-of-each-continent/solution.sql b/mysql/average-population-of-each-continent/solution.sql new file mode 100644 index 0000000..da84a86 --- /dev/null +++ b/mysql/average-population-of-each-continent/solution.sql @@ -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 \ No newline at end of file