혜온의 이것저것

[HackerRank] Weather Observation Station 14 (MySQL) 본문

Data Analysis/SQL

[HackerRank] Weather Observation Station 14 (MySQL)

혜온 :) 2022. 8. 16. 11:16

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

 

문제

Query the greatest value of the Northern Latitudes (LAT_N) from STATION that is less than 137.2345. Truncate 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.

 

풀이
select truncate(max(lat_n),4)
from station
where lat_n <137.2345
Comments