🐬 MySQL/문제풀이

[MySQL] 해커랭크 집계함수 연습 (Population Density Difference)

xod22 2023. 1. 25. 14:53
728x90

1. 문제

Query the difference between the maximum and minimum populations in CITY.

 

 

 

2. 내풀이

SELECT MAX(POPULATION) - MIN(POPULATION)
FROM CITY

 

 

 

3. 결과

728x90