SQL/MySQL

[MySQL/HackerRank] Revising Aggregations - Averages

NLP Developer 2023. 8. 21. 01:10
728x90
반응형

https://www.hackerrank.com/challenges/revising-aggregations-the-average-function/problem?isFullScreen=true 

 

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: 

Code

SELECT AVG(POPULATION)
FROM CITY
WHERE DISTRICT = 'CALIFORNIA'
728x90
반응형