[SQL] Revising Aggregations - Averages

정만·2025년 3월 10일

SQL

목록 보기
13/36

문제

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";
profile
멋있는 어른이 되고싶은 정만이의 벨로그

0개의 댓글