혜온의 이것저것

[HackerRank] Population Density Difference (MySQL) 본문

Data Analysis/SQL

[HackerRank] Population Density Difference (MySQL)

혜온 :) 2022. 8. 15. 15:22

https://www.hackerrank.com/challenges/population-density-difference/problem?isFullScreen=true 

 

Population Density Difference | HackerRank

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

www.hackerrank.com

 

문제

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

Input Format

The CITY table is described as follows: 

풀이
select max(population) - min(population)
from city
Comments