[SQL] Weather Observation Station 2
✅ Weather Observation Station 2
📝 문제
Query the following two values from the STATION
table:
- The sum of all values in LAT_N rounded to a scale of
2
decimal places. - The sum of all values in LONG_W rounded to a scale of
2
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.
Sample Input
Output Format
Your results must be in the form:
lat lon
where lat
is the sum of all values in LAT_N and lon
is the sum of all values in LONG_W. Both results must be rounded to a scale of 2
decimal places.
💻 풀이
SELECT
ROUND(SUM(LAT_N), 2) AS lat,
ROUND(SUM(LONG_W), 2) AS lon
FROM STATION;
Author And Source
이 문제에 관하여([SQL] Weather Observation Station 2), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@revudn46/Weather-Observation-Station-2저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)