상세 컨텐츠

본문 제목

Weather Observation Station 15(HackerRank)

SQL/MySQL 문제풀이

by 관재탑 2022. 7. 18. 16:36

본문

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

 

Weather Observation Station 15 | HackerRank

Query the Western Longitude for the largest Northern Latitude under 137.2345, rounded to 4 decimal places.

www.hackerrank.com

 

 

문제

Query the Western Longitude (LONG_W) for the largest Northern Latitude (LAT_N) in STATION that is less than . Round your answer to  decimal places.

 

 

정답 쿼리

SELECT ROUND(LONG_W, 4)
FROM STATION
WHERE LAT_N < 137.2345
ORDER BY LAT_N DESC
LIMIT 1

'SQL > MySQL 문제풀이' 카테고리의 다른 글

Type of Triangle(HackerRank)  (0) 2022.07.18
Top Earners(HackerRank)  (0) 2022.07.18
Higher Than 75 Marks(HackerRank)  (0) 2022.07.18
Weather Observation Station 12(HackerRank)  (0) 2022.07.18
Weather Observation Station 6(HackerRank)  (0) 2022.07.18

관련글 더보기

댓글 영역