Milky's note

[HackerRank](E) Japan Population 본문

SQL/SQL 코딩 테스트-HackerRank

[HackerRank](E) Japan Population

밀뿌 2022. 3. 25. 16:06

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: 

 

 

[답]

-mysql

select sum(population) from city
where COUNTRYCODE = 'JPN'

 

Comments