ji-0630 / CodingTest

코딩테스트 연습 기록
0 stars 0 forks source link

Weather Observation Station 8 #47

Open ji-0630 opened 1 year ago

ji-0630 commented 1 year ago

문제 설명

image

ji-0630 commented 1 year ago

나의 풀이

select distinct city
from station
where substr(city, 1, 1) in ('a', 'e', 'i', 'o', 'u')
and substr(city, -1, 1) in ('a', 'e', 'i', 'o', 'u')
ji-0630 commented 1 year ago

다시 풀기

select distinct CITY
from STATION
where CITY regexp "^[aeiou]"
and CITY regexp "[aeiou]$"