Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- branch
- 온라인협업
- elastic net
- PYTHON
- 코딩공부
- github
- 교차 엔트로피
- window function
- merge
- hackerrank
- full request
- CSS
- 클라우드컴퓨팅
- sql
- programmers
- L1정규화
- 선형 모형
- coding
- AWS
- 편향-분산 교환
- HTML
- 버전충돌
- 깃헙협업
- L2정규화
- leetcode
- early stopping
- Git
- conflict
- RLIKE
- mysql
Archives
- Today
- Total
Im between cherry
Hackerrank | MySQL | Weather Observation Station 2 본문
Weather Observation Station 2
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
Query the following two values from the STATION table:
- The sum of all values in LAT_N rounded to a scale of decimal places.
- The sum of all values in LONG_W rounded to a scale of decimal places.
SELECT ROUND(SUM(LAT_N),2) AS lat, ROUND(SUM(LONG_W),2) AS lon
FROM STATION
SELECT round(SUM(LAT_N),2)
,round(SUM(LONG_W),2)
FROM Station
'데이터분석 > practice_query' 카테고리의 다른 글
Hackerrank | MySQL | Weather Observation Station 14 (0) | 2020.08.29 |
---|---|
Hackerrank | MySQL | Weather Observation Station 13 (0) | 2020.08.29 |
Hackerrank | MySQL | Top Earners (0) | 2020.08.29 |
Hackerrank | MySQL | The Blunder (0) | 2020.08.28 |
Hackerrank | MySQL | Population Density Difference (0) | 2020.08.28 |
Comments