혜온의 이것저것

[HackerRank] Average Population 본문

Data Analysis/SQL

[HackerRank] Average Population

혜온 :) 2022. 8. 12. 14:34

https://www.hackerrank.com/challenges/average-population/problem?isFullScreen=true 

 

Average Population | HackerRank

Query the average population of all cities, rounded down to the nearest integer.

www.hackerrank.com

 

문제

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 floor(avg(population))
from city
Comments