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 |
Tags
- L2정규화
- AWS
- sql
- L1정규화
- early stopping
- programmers
- github
- mysql
- HTML
- conflict
- 편향-분산 교환
- branch
- 클라우드컴퓨팅
- merge
- RLIKE
- 깃헙협업
- Git
- PYTHON
- hackerrank
- 코딩공부
- 교차 엔트로피
- window function
- coding
- leetcode
- elastic net
- full request
- 온라인협업
- CSS
- 버전충돌
- 선형 모형
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