반응형
츄르사려고 코딩하는집사입니다.
1. [HackerRank] Average Population 오라클(Oracle)
2. 문제 출처
https://www.hackerrank.com/challenges/average-population/problem
Average Population | HackerRank
Query the average population of all cities, rounded down to the nearest integer.
www.hackerrank.com
3. 문제
Query the average population for all cities in CITY, rounded down to the nearest integer.
Input Format
The CITY table is described as follows:
4. 풀이
- CITY 테이블에서 인구(POPULATION)의 평균을 구하여 소수점을 내리고 출력하라.
5. 소스 코드
SELECT TRUNC(AVG(POPULATION))
FROM CITY;
반응형
'알고리즘 > HackerRank' 카테고리의 다른 글
[HackerRank] Revising Aggregations - The Count Function 오라클(Oracle) (0) | 2022.10.19 |
---|---|
[HackerRank] Solve Me First 자바(JAVA) (0) | 2021.09.27 |
[HackerRank] Population Density Difference 오라클(Oracle) (0) | 2021.09.27 |
[HackerRank] Japan Population 오라클(Oracle) (0) | 2021.09.27 |
[HackerRank] Revising Aggregations - Averages 오라클(Oracle) (0) | 2021.09.23 |
[HackerRank] Revising Aggregations - The Sum Function 오라클(Oracle) (0) | 2021.09.23 |
[HackerRank] Type of Triangle 오라클(Oracle) (0) | 2021.09.17 |
[HackerRank] Employee Names 오라클(Oracle) (0) | 2021.09.14 |
최근댓글