Prepare > SQL > Aggregation > Revising Aggregations - Averages
2023. 5. 16. 21:00ㆍHackerRank-My SQL
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.
코드
SELECT AVG(POPULATION) FROM CITY
WHERE DISTRICT ='California';
두 번재 시도
SELECT AVG(POPULATION) FROM CITY
WHERE DISTRICT = 'cALIFORNIA';
'HackerRank-My SQL' 카테고리의 다른 글
Prepare > SQL > Aggregation > Weather Observation Station 2 (0) | 2023.05.17 |
---|---|
Prepare > SQL > Aggregation > Top Earners (0) | 2023.05.17 |
Prepare > SQL > Aggregation > Revising Aggregations - The Sum Function (0) | 2023.05.16 |
Prepare> SQL > Aggregation > Revising Aggregations - The Count Function (0) | 2023.05.16 |
Prepare > SQL > Aggregation > The Blunder (0) | 2023.05.16 |