https://www.hackerrank.com/challenges/revising-aggregations-the-average-function/problem?isFullScreen=true

코드설명

AVG 집계함수를 사용합니다.

 

지역이 'California'인 도시의 평균 인구수를 구하면됩니다.

ORACLE은 대소문자를 구별하므로 정확하게 작성해줍니다.

ORACLE 코드

SELECT AVG(POPULATION)
FROM CITY
WHERE DISTRICT = 'California';

+ Recent posts