[hackerrank] Prepare > SQL > Aggregation > Japan Population
[문제]
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:

[MYSQL]
[ORCALE]
select sum(population)
from city
where countrycode = 'JPN';
반응형
'HackerRank > SQL' 카테고리의 다른 글
[hackerrank] The Blunder (0) | 2022.08.25 |
---|---|
[hackerrank] Population Density Difference (0) | 2022.08.24 |
[hackerrank] Average Population (0) | 2022.08.24 |
[hackerrank] Revising Aggregations - Averages (0) | 2022.08.24 |
[hackerrank] Revising Aggregations - The Sum Function (0) | 2022.08.24 |