[SQL] Revising Aggregations - The Sum Function

✅ Revising Aggregations - The Sum Function


📝 문제

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

Input Format

The CITY table is described as follows:


💻 풀이

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

좋은 웹페이지 즐겨찾기