Im between cherry

Hackerrank | MySQL | Revising Aggregations - The Sum Function 본문

데이터분석/practice_query

Hackerrank | MySQL | Revising Aggregations - The Sum Function

meal 2020. 8. 28. 09:33

Revising Aggregations - The Sum Function

Problem

 

Revising Aggregations - The Sum Function | HackerRank

Query the total population of all cities for in the District of California.

www.hackerrank.com

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

 

 

Solution

SELECT SUM(population)
FROM city
WHERE district = 'California'
Comments