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
- 버전충돌
- 코딩공부
- window function
- 온라인협업
- conflict
- programmers
- 교차 엔트로피
- L1정규화
- branch
- L2정규화
- 선형 모형
- PYTHON
- mysql
- full request
- AWS
- leetcode
- 깃헙협업
- merge
- sql
- CSS
- RLIKE
- early stopping
- Git
- coding
- elastic net
- 클라우드컴퓨팅
- HTML
- hackerrank
- github
- 편향-분산 교환
Archives
- Today
- Total
Im between cherry
Hackerrank | MySQL | Weather Observation Station 15 본문
Weather Observation Station 15
Weather Observation Station 15 | HackerRank
Query the Western Longitude for the largest Northern Latitude under 137.2345, rounded to 4 decimal places.
www.hackerrank.com
Query the Western Longitude (LONG_W) for the largest Northern Latitude (LAT_N) in STATION that is less than . Round your answer to decimal places.
SELECT ROUND(LONG_W,4)
FROM STATION
WHERE LAT_N<137.2345
ORDER BY LAT_N DESC
LIMIT 1
-- from 절에 sub 쿼리 쓸 때 as 안해주면 런타임 오류 발생
-- as 뒤에 쓰는 이름은 아무거나 써도 상관없음
SELECT round(Long_w,4)
FROM (
SELECT *
FROM Station
WHERE Lat_n < 137.2345
) as sub
ORDER BY Lat_n DESC
Limit 1
'데이터분석 > practice_query' 카테고리의 다른 글
Hackerrank | MySQL | Weather Observation Station 17 (0) | 2020.08.29 |
---|---|
Hackerrank | MySQL | Weather Observation Station 16 (0) | 2020.08.29 |
Hackerrank | MySQL | Weather Observation Station 14 (0) | 2020.08.29 |
Hackerrank | MySQL | Weather Observation Station 13 (0) | 2020.08.29 |
Hackerrank | MySQL | Weather Observation Station 2 (0) | 2020.08.29 |
Comments