SQL

[해커랭크] Weather Observation Station 2

주스 JUICE 2023. 7. 16. 15:02
728x90

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

 

Weather Observation Station 2 | HackerRank

Write a query to print the sum of LAT_N and the sum of LONG_W separated by space, rounded to 2 decimal places.

www.hackerrank.com

 

LAT_N과 LONG_W를 각각 sum하고 round를 하는 구조

요구한대로 각각 lat, lon이라는 별칭을 지어줬다

 

select round(sum(LAT_N), 2) as lat, round(sum(LONG_W),2) as lon
from station
728x90