www.hackerrank.com/challenges/weather-observation-station-9/problem
Answer
select distinct city
from station
where city not regexp '^[aeiou]'
~로 시작하지 않는 것을 나타낼때는 'NOT'를 사용한다.
www.hackerrank.com/challenges/weather-observation-station-10/problem
Answer
select distinct city
from station
where city not regexp '[aeiou]$'
~로 끝나지 않는 거이니 '$'를 사용한다.
728x90
반응형
'SQL & DB > HackerRank SQL Problem' 카테고리의 다른 글
[HackerRank SQL] Higher Than 75 Marks (0) | 2021.02.27 |
---|---|
[HackerRank SQL] Weather Observation Station 11, 12(MySQL) (0) | 2021.02.27 |
[HackerRank SQL] Weather Observation Station 7, 8(MySQL) (0) | 2021.02.27 |
[HackerRank SQL] Weather Observation Station 5, 6(MySQL) (0) | 2021.02.27 |
[HackerRank SQL] Weather Observation Station 3, 4(MySQL) (0) | 2021.02.27 |