반응형 hackerrank population density difference1 [MYSQL] Population Density Difference ▶ SQL > Aggregation > Population Density Difference Problem Query the difference between the maximum and minimum populations in CITY. → 최대 POPULATION과 최소 POPULATION의 차이를 query 하라 Input Format The CITY table is described as follows: My Answer SELECT MAX(POPULATION) - MIN(POPULATION) FROM CITY NOTE MAX(필드명) : 필드값 중 가장 큰 값 MIN(필드명) : 필드값 중 가장 작은 값 문제에서 둘의 차이를 구하라고 했기 때문에 MAX 값에서 MIN 값을 빼주었다! 2021. 5. 13. 이전 1 다음 반응형