728x90
❓ Question
https://www.hackerrank.com/challenges/weather-observation-station-13
❗ Answer
SELECT ROUND(SUM(lat_n),4)
FROM station
WHERE lat_n BETWEEN 38.7880 AND 137.2345;
📌 Discussion
- WHERE 절에서 BETWEEN으로 범위 조건을 걸어준다.
'SQL 문제풀이' 카테고리의 다른 글
[해커랭크 SQL] Aggregation - Weather Observation Station 15 (0) | 2023.08.25 |
---|---|
[해커랭크 SQL] Aggregation - Weather Observation Station 14 (0) | 2023.08.25 |
[해커랭크 SQL] Aggregation - Weather Observation Station 2 (0) | 2023.08.25 |
[해커랭크 SQL] Aggregation - Top Earners (0) | 2023.08.25 |
[해커랭크 SQL] Aggregation - Revising Aggregations - The Count Function (0) | 2023.08.25 |