혜온의 이것저것

[HackerRank] Weather Observation Station 13 (MySQL) 본문

Data Analysis/SQL

[HackerRank] Weather Observation Station 13 (MySQL)

혜온 :) 2022. 8. 15. 16:01

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

 

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 38.7880 and less than 137.2345. Truncate 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.

 

풀이
select round(sum(lat_n),4)
from station
where lat_n > 38.7880 and lat_n < 137.2345
Comments