코딩테스트/해커랭크 SQL
[해커랭크/SQL] 13. Weather Observation Station 8 (REGEXP)
Sooyoon Jeong
2023. 2. 20. 14:07
🤔 문제 분석
1) Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. Your result cannot contain duplicates.
💡 풀이
SELECT CITY
FROM STATION
WHERE CITY REGEXP "^[A|E|I|O|U]"
AND CITY REGEXP "[A|E|I|O|U]$"