🤔 문제 분석
1) Query the sum of the populations for all Japanese cities in CITY. The COUNTRYCODE for Japan is JPN.
💡 풀이
SELECT SUM(POPULATION)
FROM CITY
WHERE COUNTRYCODE = "JPN"
'코딩테스트 > 해커랭크 SQL' 카테고리의 다른 글
[해커랭크/SQL] 28. The Blunder - replace 함수 (0) | 2023.03.08 |
---|---|
[해커랭크/SQL] 27. Population Density Difference (0) | 2023.03.07 |
[해커랭크/SQL] 25. Average Population (0) | 2023.03.07 |
[해커랭크/SQL] 24. Revising Aggregations - Averages (0) | 2023.03.06 |
[해커랭크/SQL] 23. Revising Aggregations - The Sum Function (0) | 2023.03.06 |
댓글