Milky's note

[HackerRank](E) Population Density Difference 본문

SQL/SQL 코딩 테스트-HackerRank

[HackerRank](E) Population Density Difference

밀뿌 2022. 3. 25. 16:13

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: 

 

 

[답]

-mysql

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