IT/SQL

[해커랭크] Revising Aggregations - The Sum Function

김보통김보름 2023. 3. 31. 01:42
728x90
반응형

문제링크 : https://www.hackerrank.com/challenges/revising-aggregations-sum/problem?isFullScreen=true

 

Query the total population of all cities in CITY where District is California.

Input Format

The CITY table is described as follows: 

 

🔉 문제 설명

지역구가 California인 CITY의 총 인구수를 쿼리

 

SELECT SUM(POPULATION)
FROM CITY
WHERE DISTRICT = 'California'

 


 SUM : 총

728x90