728x90
반응형
https://www.hackerrank.com/challenges/weather-observation-station-15/problem?isFullScreen=true
문제
Query the Western Longitude (LONG_W) for the largest Northern Latitude (LAT_N) in STATION that is less than 137.2345. Round your answer to decimal places.
Input Format
The STATION table is described as follows:
where LAT_N is the northern latitude and LONG_W is the western longitude.
Code
SELECT ROUND(LONG_W, 4)
FROM STATION
WHERE LAT_N < 137.2345
ORDER BY LAT_N DESC LIMIT 1
728x90
반응형
'SQL > MySQL' 카테고리의 다른 글
[MySQL/HackerRank] Weather Observation Station 17 (0) | 2023.08.25 |
---|---|
[MySQL/HackerRank] Weather Observation Station 16 (0) | 2023.08.25 |
[MySQL/HackerRank] Weather Observation Station 14 (0) | 2023.08.25 |
[MySQL/HackerRank] Weather Observation Station 13 (0) | 2023.08.25 |
[MySQL/HackerRank] Weather Observation Station 2 (0) | 2023.08.25 |