섭섭의 공부/SQL

[HackerRank] Average Population of Each Continent

seobbseob 2021. 12. 2. 10:49
SELECT country.continent, FLOOR(AVG(city.population))
FROM city
INNER JOIN country ON city.countrycode = country.code
GROUP BY country.continent;

버림인지 반올림인지 잘 확인

 

(문제 출처 - https://www.hackerrank.com/domains/sql)

저작자표시 비영리 변경금지 (새창열림)