혜온의 이것저것

[HackerRank] Revising Aggregations- Averages (MySQL) 본문

Data Analysis/SQL

[HackerRank] Revising Aggregations- Averages (MySQL)

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

https://www.hackerrank.com/challenges/revising-aggregations-the-average-function/problem?isFullScreen=true&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen 

 

Revising Aggregations - Averages | HackerRank

Query the average population of all cities in the District of California.

www.hackerrank.com

 

문제

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

Input Format

The CITY table is described as follows: 

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