IT/SQL [해커랭크] Average Population - 728x90 반응형 문제링크 : https://www.hackerrank.com/challenges/average-population/problem?isFullScreen=true ❓문제 Query the average population for all cities in CITY, rounded down to the nearest integer. Input Format The CITY table is described as follows: 🔉 문제 설명 모든 CITY의 인구의 평균을 쿼리 rounded down : 소수 끝자리를 자르고 정수로 쿼 ❗답 SELECT TRUNCATE(AVG(POPULATION),0) FROM CITY 🤔풀이 ROUND : 반올림 TRUNCATE : 끝자리 버리기(반드시 버릴 자릿수 명시해야 함) 728x90 공유하기 게시글 관리 보름찬 하루 'IT > SQL' 카테고리의 다른 글 [해커랭크] Population Density Difference (0) 2023.03.31 [해커랭크] Japan Population (0) 2023.03.31 [해커랭크] Revising Aggregations - Averages (0) 2023.03.31 [해커랭크] Revising Aggregations - The Sum Function (0) 2023.03.31 [해커랭크] Revising Aggregations - The Count Function (0) 2023.03.31 Contents 당신이 좋아할만한 콘텐츠 [해커랭크] Population Density Difference 2023.03.31 [해커랭크] Japan Population 2023.03.31 [해커랭크] Revising Aggregations - Averages 2023.03.31 [해커랭크] Revising Aggregations - The Sum Function 2023.03.31 댓글 0 + 이전 댓글 더보기