본문 바로가기

Algorithm/MySQL

[해커랭크(Hacker Rank)]Average Population (MySQL)

문제

Query the average population for all cities in CITY, rounded down to the nearest integer.
Input Format
The CITY table is described as follows: 

 

코드

SELECT ROUND(AVG(population),0)
FROM city

 

출처

반응형