| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- 정규표현식
- SQL
- select
- 코드스테이츠
- 개발자의 책장
- 알고리즘
- 블록체인
- 역행자
- Where
- Developer_JoyKim
- array.push()
- Programmers
- 프로그래머스
- Hackerrank
- 코딩테스트
- array
- join
- 배열
- 재귀함수
- Algorithms
- array.slice()
- MySQL
- node.js
- JavaScript
- 자바스크립트
- 개발자_조이킴
- 코플릿
- for문
- 최강의 인생
- 코딩공부
Archives
- Today
- Total
CodingSpace
[HackerRank/SQL] Revising Aggregations - Population Density Difference 본문
HackerRank/SQL
[HackerRank/SQL] Revising Aggregations - Population Density Difference
개발자_조이킴 2022. 7. 17. 02:16Problem. Revising Aggregations - Population Density Difference
Link.
https://www.hackerrank.com/challenges/population-density-difference/problem?isFullScreen=true
Average Population | HackerRank
Query the average population of all cities, rounded down to the nearest integer.
www.hackerrank.com
Description.
Query the difference between the maximum and minimum populations in CITY.

Key Point.
SELECT,
AVG,
ROUND,
My Answer.
SELECT MAX(POPULATION) - MIN(POPULATION)
FROM CITY;
References.
'HackerRank > SQL' 카테고리의 다른 글
| [HackerRank/SQL] Revising Aggregations - Top Earners (0) | 2022.07.19 |
|---|---|
| [HackerRank/SQL] Revising Aggregations - The Blunder (0) | 2022.07.17 |
| [HackerRank/SQL] Revising Aggregations - Averages (0) | 2022.07.16 |
| [HackerRank/SQL] Revising Aggregations - Average Population (0) | 2022.07.14 |
| [HackerRank/SQL] Revising Aggregations - Averages (0) | 2022.07.12 |
Comments