알고리즘/HackerRank
[HackerRank] Weather Observation Station 20 오라클 풀이
mndev
2024. 1. 31. 15:56
문제링크
Weather Observation Station 20 | HackerRank
Query the median of Northern Latitudes in STATION and round to 4 decimal places.
www.hackerrank.com
풀이
1. oracle median함수를 사용해 중간 값을 구해줬다.
2. 소수점 4자리에서 반올림 해야 하므로 round함수를 사용하여 풀이하면 조건에 맞게 풀이할 수 있다.
코드
select round(median(lat_n),4)
from station