728x90
728x90
Problem
Given the CITY and COUNTRY tables, query the sum of the populations of all cities where the CONTINENT is 'Asia'.
-> 아시아에 있는 모든 도시의 인구 수의 합을 출력하시오.
Answer
select sum(a.population)
from city a inner join country b on a.countrycode = b.code
where b.continent = "Asia"
728x90
728x90
'Language > SQL' 카테고리의 다른 글
[HackerRank][SQL] Weather Observation Station 13 - 컴도리돌이 (0) | 2022.05.20 |
---|---|
[HackerRank][SQL][JOIN] Basic Join, Challenges - 컴도리돌이 (0) | 2022.05.19 |
[HackerRank][SQL][JOIN] Basic Join, Ollivander's Inventory - 컴도리돌이 (0) | 2022.05.19 |
[HackerRank][SQL] Weather Observation Station 12 - 컴도리돌이 (0) | 2022.05.19 |
[HackerRank][SQL] Weather Observation Station 10 - 컴도리돌이 (0) | 2022.05.18 |