SQL/MySQL

[MySQL/HackerRank] Weather Observation Station 13

NLP Developer 2023. 8. 25. 21:32
728x90
반응형

https://www.hackerrank.com/challenges/weather-observation-station-13/problem?isFullScreen=true 

 

Weather Observation Station 13 | HackerRank

Query the sum of Northern Latitudes having values greater than 38.7880 and less than 137.2345, truncated to 4 decimal places.

www.hackerrank.com

문제

Query the sum of Northern Latitudes (LAT_N) from STATION having values greater than  and 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.

Code

SELECT ROUND(SUM(LAT_N), 4)
FROM STATION
WHERE LAT_N BETWEEN 38.7880 AND 137.2345
728x90
반응형