| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 |
Tags
- array
- 정규표현식
- Hackerrank
- array.slice()
- node.js
- select
- Programmers
- MySQL
- 프로그래머스
- SQL
- 재귀함수
- JavaScript
- 코드스테이츠
- Algorithms
- 코플릿
- 역행자
- join
- Developer_JoyKim
- 코딩공부
- 개발자_조이킴
- for문
- 최강의 인생
- 배열
- 블록체인
- 알고리즘
- 자바스크립트
- 개발자의 책장
- 코딩테스트
- Where
- array.push()
Archives
- Today
- Total
CodingSpace
[HackerRank/SQL] Revising Aggregations - Average Population 본문
HackerRank/SQL
[HackerRank/SQL] Revising Aggregations - Average Population
개발자_조이킴 2022. 7. 14. 13:33Problem. Revising Aggregations - Averages Population
Link.
Revising Aggregations - Averages | HackerRank
Query the average population of all cities in the District of California.
www.hackerrank.com
Description.
Query the average population for all cities in CITY, rounded down to the nearest integer.

Key Point.
SELECT,
AVG,
ROUND,
My Answer.
SELECT ROUND(AVG(POPULATION))
FROM CITY;
References.
'HackerRank > SQL' 카테고리의 다른 글
| [HackerRank/SQL] Revising Aggregations - Population Density Difference (0) | 2022.07.17 |
|---|---|
| [HackerRank/SQL] Revising Aggregations - Averages (0) | 2022.07.16 |
| [HackerRank/SQL] Revising Aggregations - Averages (0) | 2022.07.12 |
| [HackerRank/SQL] Revising Aggregations - The Sum Function (0) | 2022.07.10 |
| [HackerRank/SQL] Revising Aggregations - The Count Function (0) | 2022.07.05 |
Comments