일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- FullyConnectedLayer
- skip-gram
- SQL
- Sigmoid
- boj
- 프로그래머스
- CBOW
- 파이썬
- kakao
- algorithm
- dl
- backward
- 자연어처리
- Word2vec
- stak
- DeepLearning
- select
- 신경망
- Heap
- que
- Programmers
- 딥러닝
- Python
- sort
- hash
- PPMI
- MySQL
- Numpy
- Stack
- affine
Archives
- Today
- Total
혜온의 이것저것
[HackerRank] Weather Observation Station 2 (MySQL) 본문
문제
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.
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), round(sum(long_w),2)
from station
'Data Analysis > SQL' 카테고리의 다른 글
[HackerRank] Weather Observation Station 14 (MySQL) (0) | 2022.08.16 |
---|---|
[HackerRank] Weather Observation Station 13 (MySQL) (0) | 2022.08.15 |
[HackerRank] Top Earners (MySQL) (0) | 2022.08.15 |
[HackerRank] The Blunder (MySQL) (0) | 2022.08.15 |
[HackerRank] Population Density Difference (MySQL) (0) | 2022.08.15 |
Comments