[MSSQL] 해커랭크(HackerRank) - Weather Observation Station 2

develop_wan·2021년 12월 30일

HackerRank SQL

목록 보기
34/51
post-thumbnail

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


문제


해석
STATION 테이블에서 다음 두 값을 쿼리합니다.

LAT_N의 모든 값의 합계는 소수점 2자리 척도로 반올림됩니다.
LONG_W의 모든 값의 합계는 소수점 2자리 척도로 반올림됩니다.

select
    format(round(sum(lat_n),2),'#.00')
,   format(round(sum(long_w),2),'#.00')
from
    station
profile
서른. 개발자가 되기로 했다

0개의 댓글