Query the smallest Northern Latitude (LAT_N) from STATION that is greater than 38.7780. Round your answer to 4 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.
- query the smallest LAT_N ==> SELECT MIN(LAT_N)
- round answer to 4 deciaml places ==> SELECT ROUND(MIN(LAT_N), 4)
- from STATION table ==> FROM STATION
- greater than 38.7880 ==> WHERE LAT_N > 38.7780
SELECT ROUND(MIN(LAT_N), 4)
FROM STATION
WHERE LAT_N > 38.7780;
SELECT ROUND(LAT_N,4)
FROM STATION
WHERE LAT_N > 38.7780
ORDER BY LAT_N LIMIT 1;
'Algorithm > SQL' 카테고리의 다른 글
[SQL][HackerRank] Asian Population (0) | 2020.06.13 |
---|---|
[SQL][HackerRank] The Report (0) | 2020.06.12 |
[SQL][HackerRank] Weather Observation Station 15 (0) | 2020.06.12 |
[SQL][HackerRank] Weather Observation Station 14 (0) | 2020.06.12 |
[SQL][HackerRank] Weather Observation Station 13 (0) | 2020.06.12 |