SQL25 [SQL] HackerRank - Population Census 출처 : 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 가장 기본적인 Join문 상황을 배우기. city의 countrycode와 country의 code가 동일한것끼리 합쳐주는 join 사용하여 간단한 select문을 적용한다. select 자체에서도 함수를 적용하여 값만 뽑아낼 수 있음을 잊지 말자. SELECT SUM(CITY.POPULATION) FROM CITY JOIN COUNTRY ON CITY.COUNTRYCO.. 2021. 6. 4. 이전 1 2 3 4 5 다음