HackerRank

[HackerRank/SQL] Aggregation - Weather Observation Station 16

개발자_조이킴 2022. 8. 1. 23:40

Problem. Basic Select - Weather Observation Station 16


Link.

https://www.hackerrank.com/challenges/weather-observation-station-16/problem?isFullScreen=true&h_r=next-challenge&h_v=zen 

 

Weather Observation Station 16 | HackerRank

Query the smallest of STATION's Northern Latitudes that is greater than 38.7780, and round to 4 decimal places

www.hackerrank.com


Description.

Query the smallest Northern Latitude (LAT_N) from STATION that is greater than 38.7780.

Round your answer to 4 decimal places.

 

STATION 테이블


Key Point. 

ROUND,

 

MIN,


My Answer. 

SELECT
ROUND(MIN(LAT_N), 4)
FROM STATION
WHERE LAT_N > 38.7780;

References.