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
- 버전충돌
- RLIKE
- L2정규화
- PYTHON
- conflict
- L1정규화
- branch
- mysql
- 클라우드컴퓨팅
- hackerrank
- sql
- full request
- 깃헙협업
- window function
- HTML
- 편향-분산 교환
- early stopping
- 코딩공부
- 온라인협업
- CSS
- leetcode
- AWS
- 선형 모형
- Git
- elastic net
- programmers
- github
- coding
- merge
- 교차 엔트로피
Archives
- Today
- Total
Im between cherry
Hackerrank | MySQL | Weather Observation Station 10 본문
Weather Observation Station 10
Query the list of CITY names from STATION that do not end with vowels. Your result cannot contain duplicates.
Solution
SELECT DISTINCT CITY
FROM STATION
WHERE CITY NOT LIKE '%a' AND
CITY NOT LIKE '%e' AND
CITY NOT LIKE '%i' AND
CITY NOT LIKE '%o' AND
CITY NOT LIKE '%u';
SELECT DISTINCT city
FROM station
WHERE city NOT REGEXP '[aeiou]$'
SELECT Distinct City
FROM Station
WHERE City NOT rLike '[aeiou]$'
'데이터분석 > practice_query' 카테고리의 다른 글
Hackerrank | MySQL | Weather Observation Station 12 (0) | 2020.08.28 |
---|---|
Hackerrank | MySQL | Weather Observation Station 11 (0) | 2020.08.28 |
Hackerrank | MySQL | Weather Observation Station 9 (0) | 2020.08.28 |
Hackerrank | MySQL | Weather Observation Station 8 (0) | 2020.08.27 |
Hackerrank | MySQL | Weather Observation Station 7 (0) | 2020.08.27 |
Comments