Im between cherry

Hackerrank | MySQL | Weather Observation Station 13 본문

데이터분석/practice_query

Hackerrank | MySQL | Weather Observation Station 13

meal 2020. 8. 29. 11:09

Weather Observation Station 13

Problem

 

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.

 

SELECT round(SUM(Lat_n),4)
FROM Station
WHERE Lat_n Between 38.7880 and 137.2345
SELECT TRUNCATE(SUM(LAT_N), 4)
FROM STATION
WHERE LAT_N > 38.7880 AND LAT_N < 137.2345
Comments