IT/SQL
[해커랭크] Revising Aggregations - Averages
김보통김보름
2023. 3. 31. 01:45
728x90
반응형
❓문제
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