HackerRank/SQL
[HackerRank/SQL] Aggregation - Japan Population
개발자_조이킴
2022. 7. 19. 09:22
Problem. Aggregation - Japan Population
Link.
Japan Population | HackerRank
Query to the sum of the populations of all Japanese cities in CITY.
www.hackerrank.com
Description.
Query the sum of the populations for all Japanese cities in CITY.
Key Point.
SELECT,
SUM,
WHERE,
My Answer.
SELECT SUM(POPULATION)
FROM CITY
WHERE COUNTRYCODE = 'JPN';
References.