Revising Aggregations - The Sum Function
- URL : https://www.hackerrank.com/challenges/revising-aggregations-sum/problem
- Query the total population of all cities in CITY where District is California.
- MySQL Solution
1
2
3
select sum(population)
from city
where district = 'California'