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