Contents

Average Population of Each Continent

   Jan 22, 2023     0 min read

Average Population of Each Continent

문제

Average_Population_of_Each_Continent1.jpg
Average_Population_of_Each_Continent2.jpg

코드

Oracle

SELECT COUNTRY.CONTINENT 
     , FLOOR(AVG(CITY.POPULATION))
FROM CITY
    INNER JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE
GROUP BY COUNTRY.CONTINENT;