[HackerRank] Revising Aggregations - The Sum Function

MySQL > 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:



My Answer


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

좋은 웹페이지 즐겨찾기