반응형
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'
반응형
댓글