-
[HackerRank/Basic Join] Population Census공부/PS ( SQL) 2022. 5. 18. 21:20
https://www.hackerrank.com/challenges/asian-population/problem
Population Census | HackerRank
Query the sum of the populations of all cities on the continent 'Asia'.
www.hackerrank.com
문제
풀이
SELECT SUM(CITY.POPULATION) FROM CITY INNER JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE WHERE COUNTRY.CONTINENT = 'Asia'
INNER JOIN
SELECT <select_list> FROM TABLE A A
INNER JOIN TABLE B B
ON A.Key = B.Key
WHERE <select_condition>
'공부 > PS ( SQL)' 카테고리의 다른 글
[HackerRank/Basic Join] African Cities (0) 2022.05.18 [MYSQL] JOIN 참고 (0) 2022.05.18 [HackerRank/Aggregation] Revising Aggregations - Average Population (0) 2022.05.18 [HackerRank/Aggregation] Revising Aggregations - Averages (0) 2022.05.18 [HackerRank/Aggregation] Revising Aggregations - The Count Function (0) 2022.05.17