https://www.hackerrank.com/challenges/revising-aggregations-sum/problem?h_r=next-challenge&h_v=zen
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.
Input Format
The CITY table is described as follows:

- query total population ==> SELECT SUM(POPULATION)
- in CITY table ==> FROM CITY
- District is California ==> WHERE DISTRICT = ‘California’
SELECT SUM(POPULATION)
FROM CITY
WHERE DISTRICT = 'California';

'Algorithm > SQL' 카테고리의 다른 글
| [SQL][HackerRank] Average Population (0) | 2020.06.11 |
|---|---|
| [SQL][HackerRank] Revising Aggregations - Averages (0) | 2020.06.11 |
| [SQL][HackerRank] Revising Aggregations - The Count Function (0) | 2020.06.11 |
| [SQL][HackerRank] The PADS (0) | 2020.06.11 |
| [SQL][HackerRank] Type of Triangle (0) | 2020.06.11 |
