Average Population of Each Continent
Average Population of Each Continent
문제
코드
Oracle
SELECT COUNTRY.CONTINENT
, FLOOR(AVG(CITY.POPULATION))
FROM CITY
INNER JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE
GROUP BY COUNTRY.CONTINENT;
Average Population of Each Continent
SELECT COUNTRY.CONTINENT
, FLOOR(AVG(CITY.POPULATION))
FROM CITY
INNER JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE
GROUP BY COUNTRY.CONTINENT;