HackerRank/SQL

[hackerrank] Weather Observation Station 14

예쁜꽃이피었으면 2022. 8. 31. 11:05

[hackerrank] Prepare > SQL > Aggregation > Weather Observation Station 14

 

[문제]

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

 

[MYSQL]

 

 

[ORCALE]

 

select round(max(lat_n),4)
from station
where lat_n < 137.2345;

 

 

반응형