HackerRank/SQL

[hackerrank] Weather Observation Station 17

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

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

 

[문제]

Query the Western Longitude (LONG_W)where the smallest Northern Latitude (LAT_N) in STATION 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(long_w,4)
from (
        select *
        from station
        where lat_n > 38.7780
        order by lat_n asc
    )
where rownum = 1;

 

 

 

반응형