문제
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.
Input Format
The STATION table is described as follows:
where LAT_N is the northern latitude and LONG_W is the western longitude.
풀이
select distinct city
from station
where city regexp '^[aeiou]' and city regexp '[aeiou]$';
'algorithm' 카테고리의 다른 글
[HackerRank] MySQL - Weather Observation Station 9 (0) | 2022.09.22 |
---|---|
[programmers] MySQL - Lv.2 중성화 여부 파악하기 (string, date) (0) | 2022.09.22 |
[programmers] MySQL - Lv.2 DATETIME에서 DATE로 형변환 (1) | 2022.09.21 |
[HackerRank] MySQL - Weather Observation Station 7 (0) | 2022.09.20 |
[programmers] MySQL - Lv.2 중복 제거하기 (sum, max, min) (0) | 2022.09.20 |