문제
Query the list of CITY names from STATION that either do not start with vowels or 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]" or
city regexp "[^aeiou]$";
'algorithm' 카테고리의 다른 글
[HackerRank] MySQL - Weather Observation Station 12 (0) | 2022.09.26 |
---|---|
[programmers] MySQL - Lv.3 있었는데요 없었습니다 (join) (0) | 2022.09.26 |
[programmers] MySQL - Lv.3 오랜 기간 보호한 동물 (2) (string, date) (0) | 2022.09.24 |
[HackerRank] MySQL - Weather Observation Station 10 (0) | 2022.09.24 |
[programmers] MySQL - Lv.3 오랜 기간 보호한 동물 (1) (join) (0) | 2022.09.24 |