혜온의 이것저것

[HackerRank] Revising Aggregations- The Sum Function (MySQL) 본문

Data Analysis/SQL

[HackerRank] Revising Aggregations- The Sum Function (MySQL)

혜온 :) 2022. 8. 12. 14:29

https://www.hackerrank.com/challenges/revising-aggregations-sum/problem?isFullScreen=true&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: 

풀이
select sum(population)
from city
where district = 'California'
Comments