본문 바로가기

Algorithm/MySQL

[해커랭크(HackerRank)] Revising Aggregations - Averages (MySQL)

문제

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'
  1. City 테이블에서 California의 인구 평균 구하기

출처

반응형