코딩코딩코딩

[HackerRank] Average Population of Each Continent 본문

MySQL/Problem Solving

[HackerRank] Average Population of Each Continent

hanshow113 2022. 2. 6. 19:52

 

SELECT COUNTRY.Continent
     , FLOOR(AVG(CITY.population))
FROM CITY
     INNER JOIN COUNTRY ON CITY.CountryCode = COUNTRY.CODE
GROUP BY COUNTRY.Continent
Comments