융무의 기술블로그
article thumbnail

https://www.hackerrank.com/challenges/revising-aggregations-the-average-function/problem?h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen

 

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:

  • query average population ==> SELECT AVG(POPULATION)
  • in CITY table ==> FROM CITY
  • District is California ==> WHERE DISTRICT = ‘California’
SELECT AVG(POPULATION)
FROM CITY
WHERE DISTRICT = 'California';

 

profile

융무의 기술블로그

@융무

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!