🤔 문제 분석
Query the following two values from the STATION table:
- The sum of all values in LAT_N rounded to a scale of 2 decimal places.
- The sum of all values in LONG_W rounded to a scale of 2 decimal places.
💡 풀이
SELECT ROUND(SUM(LAT_N), 2) AS lat, ROUND(SUM(LONG_W), 2) AS lon
FROM STATION
'코딩테스트 > 해커랭크 SQL' 카테고리의 다른 글
[해커랭크/SQL] 32. The PADS (concat, 문자열 합치기) (0) | 2023.03.13 |
---|---|
[해커랭크/SQL] 31. Weather Observation Station 13 (0) | 2023.03.12 |
[해커랭크/SQL] 29. Top Earners (0) | 2023.03.08 |
[해커랭크/SQL] 28. The Blunder - replace 함수 (0) | 2023.03.08 |
[해커랭크/SQL] 27. Population Density Difference (0) | 2023.03.07 |
댓글