HackerRank/SQL

[hackerrank] Weather Observation Station 16

예쁜꽃이피었으면 2022. 9. 6. 15:39

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

 

[문제]

Query the smallest Northern Latitude (LAT_N) from STATION that is greater than . 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.

 

[MYSQL]

 

 

[ORCALE]

 

select round(lat_n,4)
from (
        select *
        from station
        where lat_n > 38.7780
        order by lat_n asc
    )
where rownum = 1;

 

 

반응형