728x90
Problem
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 4 decimal places.
-> lat_n이 137.2345보다 작은 값중에서 제일 큰 lat_n을 가진 long_w를 소수점 4자리에서 반올림하여 출력하시오.
Answer
select round(long_w,4)
from station
where lat_n < 137.2345
order by lat_n desc limit 1
'Language > SQL' 카테고리의 다른 글
[HackerRank][SQL][Aggregation] Weather Observation Station 17 - 컴도리돌이 (0) | 2022.05.24 |
---|---|
[HackerRank][SQL] Weather Observation Station 16 - 컴도리돌이 (0) | 2022.05.23 |
[HackerRank][SQL] Weather Observation Station 14 - 컴도리돌이 (0) | 2022.05.21 |
[HackerRank][SQL] Weather Observation Station 13 - 컴도리돌이 (0) | 2022.05.20 |
[HackerRank][SQL][JOIN] Basic Join, Challenges - 컴도리돌이 (0) | 2022.05.19 |