🐬 MySQL/문제풀이

[MySQL] 해커랭크 집계함수 연습 (Revising Aggregations - Averages)

xod22 2023. 1. 25. 14:07
728x90

1. 문제

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

 

 

 

2. 내풀이

SELECT AVG(POPULATION) -- population 평균
FROM CITY -- 테이블명
WHERE DISTRICT="California" -- 조건절

 

 

 

3. 결과

728x90