728x90
❓ Question
https://www.hackerrank.com/challenges/weather-observation-station-2
❗ Answer
SELECT ROUND(SUM(lat_n),2), ROUND(SUM(long_w),2)
FROM station;
📌 Discussion
- 모든 lat_n과 long_w를 각각 합친 후 ROUND로 반올림하여 소수점 둘째자리까지 표현한다.
'SQL 문제풀이' 카테고리의 다른 글
[해커랭크 SQL] Aggregation - Weather Observation Station 14 (0) | 2023.08.25 |
---|---|
[해커랭크 SQL] Aggregation - Weather Observation Station 13 (0) | 2023.08.25 |
[해커랭크 SQL] Aggregation - Top Earners (0) | 2023.08.25 |
[해커랭크 SQL] Aggregation - Revising Aggregations - The Count Function (0) | 2023.08.25 |
[해커랭크 SQL] Aggregation - The Blunder (0) | 2023.08.23 |