본문 바로가기

Algorithm/MySQL

[해커랭크(HackerRank)] 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))
From City
  1. City 테이블에서 모든 도시의 평균 반올림 (정수와 가장 가까운 수)

출처

반응형