문제
Query the average population of all cities in CITY where District is California.
Input Format
The CITY table is described as follows:
코드
SELECT AVG(population)
FROM city
WHERE district = 'California'
풀이
- population의 평균 구하기
- district는 California
출처
반응형
'Algorithm > MySQL' 카테고리의 다른 글
[해커랭크(Hacker Rank)]Revising Aggregations - The Count Function (MySQL) (0) | 2021.06.30 |
---|---|
[해커랭크(Hacker Rank)] Revising Aggregations - The Sum Function (MySQL) (0) | 2021.06.30 |
[프로그래머스] 보호소에서 중성화한 동물 (MySQL) (0) | 2021.06.29 |
[프로그래머스] 오랜 기간 보호한 동물(1) (MySQL) (0) | 2021.06.29 |
[프로그래머스] 있었는데요 없었습니다 (MySQL) (0) | 2021.06.29 |