Query the greatest value of the Northern Latitudes (LAT_N) from STATION that is less than 137.2345. Truncate your answer to 4 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.
[My Answer]
SELECT ROUND(max(lat_n), 4)
FROM STATION
WHERE lat_n < 137.2345
역시 round 함수를 쓰고 최대값을 찾는 max를 써줬다.
아니 왜 까다롭다가 갑자기 난이도가 내려가냐고..
'Code Problems > SQL_ HackerRank' 카테고리의 다른 글
[HackerRank] Weather Observation Station 16 (0) | 2021.11.14 |
---|---|
[HackerRank] Weather Observation Station 15 (0) | 2021.11.11 |
[HackerRank] Weather Observation Station 13 (0) | 2021.11.11 |
[Hacker Ranker] Weather Observation Station 2 (0) | 2021.11.07 |
[Hacker Rank] Top Earners (0) | 2021.11.07 |