문제
Query the list of CITY names from STATION that do not start with vowels and do not end with vowels. 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 - Higher Than 75 Marks (0) | 2022.09.27 |
---|---|
[programmers] MySQL - Lv.3 없어진 기록 찾기 (join) (0) | 2022.09.27 |
[programmers] MySQL - Lv.3 있었는데요 없었습니다 (join) (0) | 2022.09.26 |
[HackerRank] MySQL - Weather Observation Station 11 (0) | 2022.09.24 |
[programmers] MySQL - Lv.3 오랜 기간 보호한 동물 (2) (string, date) (0) | 2022.09.24 |