HackerRank/SQL

[hackerrank] Revising Aggregations - Averages

예쁜꽃이피었으면 2022. 8. 24. 09:56

[hackerrank] Prepare > SQL > Aggregation > Revising Aggregations - Averages

 

[문제]

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

Input Format

The CITY table is described as follows: 

 

[MYSQL]

 

 

[ORCALE]

select avg(population)
from city
where district = 'California';

 

 

 

반응형