728x90
반응형
https://www.hackerrank.com/challenges/japan-population/problem?isFullScreen=true
Japan Population | HackerRank
Query to the sum of the populations of all Japanese cities in CITY.
www.hackerrank.com
문제
Query the sum of the populations for all Japanese cities in CITY. The COUNTRYCODE for Japan is JPN.
Input Format
The CITY table is described as follows:
![](https://blog.kakaocdn.net/dn/bb4pSK/btsrDHNaEZb/wEEV1R6pf1BjYGr7k7wmzK/img.jpg)
Code
SELECT SUM(POPULATION)
FROM CITY
WHERE COUNTRYCODE = 'JPN'
728x90
반응형
'SQL > MySQL' 카테고리의 다른 글
[MySQL/HackerRank] The Blunder (0) | 2023.08.21 |
---|---|
[MySQL/HackerRank] Population Density Difference (0) | 2023.08.21 |
[MySQL/HackerRank] Average Population (0) | 2023.08.21 |
[MySQL/HackerRank] Revising Aggregations - Averages (0) | 2023.08.21 |
[MySQL/HackerRank] Revising Aggregations - The Sum Function (0) | 2023.08.21 |