몸과 마음이 건전한 SW 개발자

[HackerRank-MSSQL] 해커랭크 Aggregation Weather Observation Station 14 본문

SQL/MSSQL

[HackerRank-MSSQL] 해커랭크 Aggregation Weather Observation Station 14

스위태니 2026. 4. 21. 11:58
728x90

문제 링크

https://www.hackerrank.com/challenges/weather-observation-station-14/problem?isFullScreen=true

 

Weather Observation Station 14 | HackerRank

Query the greatest value of the Northern Latitudes from STATION that are under 137.2345 and truncated to 4 decimal places.

www.hackerrank.com

정답 코드

select top(1) cast(lat_n as decimal(10, 4)) from station
where lat_n < 137.2345
order by lat_n desc;

728x90