🤔 문제 분석
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]$"
'코딩테스트 > 해커랭크 SQL' 카테고리의 다른 글
[해커랭크/SQL] 15. Weather Observation Station 10 (REGEXP) (0) | 2023.02.21 |
---|---|
[해커랭크/SQL] 14. Weather Observation Station 9 (REGEXP) (0) | 2023.02.20 |
[해커랭크/SQL] 12. Weather Observation Station 7 (0) | 2023.02.20 |
[해커랭크/SQL] 11. Weather Observation Station 6 (0) | 2023.02.15 |
[해커랭크/SQL] 10. Weather Observation Station 5 (0) | 2023.02.15 |
댓글