IT/SQL

[해커랭크] Revising Aggregations - Averages

김보통김보름 2023. 3. 31. 01:45
728x90
반응형

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

 

Query the average population of all cities in CITY where District is California.

Input Format

The CITY table is described as follows: 

 

🔉 문제 설명

지역구가 California인 CITY의 인구 평균을 쿼

 

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

 


 AVG : 평균

728x90