๋ฐ์ํ

1. ๐ ๋ฌธ์ ์ถ์ฒ
https://www.hackerrank.com/challenges/weather-observation-station-13/problem?isFullScreen=true
Weather Observation Station 13 | HackerRank
Query the sum of Northern Latitudes having values greater than 38.7880 and less than 137.2345, truncated to 4 decimal places.
www.hackerrank.com
2. 1๏ธโฃ ๋ฌธ์
38.7880๋ณด๋ค ํฌ๊ณ 137.2345๋ณด๋ค ์์ ๊ฐ์ ๊ฐ์ง STATION์ Northern Latitude(LAT_N) ํฉ๊ณ๋ฅผ ์ฟผ๋ฆฌํฉ๋๋ค. ์์์ 4์๋ฆฌ๋ก ๋ต์ ์๋ผ๋ ๋๋ค.

3. 2๏ธโฃ MySQL ์ฟผ๋ฆฌ
<sql />
select truncate(sum(LAT_N),4)
from station
where LAT_N > 38.7880
and LAT_N < 137.2345;
Run Code ๋ฒํผ ํด๋ฆญ ์,

Submit Code ๋ฒํผ ํด๋ฆญ ์,

๋ฐ์ํ
'Algorithm & SQL > HackerRank' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[SQL][HackerRank] Weather Observation Station 4 (0) | 2023.01.08 |
---|---|
[SQL][HackerRank] Weather Observation Station 3 (0) | 2022.12.03 |
[SQL][HackerRank] Revising the Select Query II (0) | 2022.12.03 |