문제
Query the list of CITY names from STATION that 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]$";
p.s
헤헤;P 열심히해야지!
'algorithm' 카테고리의 다른 글
[HackerRank] MySQL - Weather Observation Station 11 (0) | 2022.09.24 |
---|---|
[programmers] MySQL - Lv.3 오랜 기간 보호한 동물 (2) (string, date) (0) | 2022.09.24 |
[programmers] MySQL - Lv.3 오랜 기간 보호한 동물 (1) (join) (0) | 2022.09.24 |
[HackerRank] MySQL - Weather Observation Station 9 (0) | 2022.09.22 |
[programmers] MySQL - Lv.2 중성화 여부 파악하기 (string, date) (0) | 2022.09.22 |