본문 바로가기
카테고리 없음

[MySQL] Revising Aggregations - The Sum Function

by 주 녕 2021. 4. 20.
반응형

SQL  >  Basic Select  > Revising Aggregations - The Sum Function

 

 Problem 

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

Input Format

The CITY table is described as follows: 

 My Answer 

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

 

 

반응형

댓글