Problem Solving
[MySQL] Weather Observation Station 12 | 정규표현식
luminous13
2022. 3. 29. 12:21
문제
- 도시명이 모음으로 시작하지 않'고'(=and) 모음으로 끝나지 않는 도시 리스트를 조회하세요
- 결과에는 중복을 포함하지 않습니다.
풀이
select distinct city
from station
where city regexp '^[^aeiou]'
and
city regexp '[^aeiou]$';
출처: https://www.hackerrank.com/challenges/weather-observation-station-12/problem?isFullScreen=true
Weather Observation Station 12 | HackerRank
Query an alphabetically ordered list of CITY names not starting and ending with vowels.
www.hackerrank.com