CODING TEST/SQL : HackerRank
[MySQL] Weather Observation Station 7
주 녕
2021. 4. 2. 15:40
반응형
▶ SQL > Basic Select > Weather Observation Station 7
Problem
Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates.
The STATION table is described as follows:
My Answer
SELECT DISTINCT CITY
FROM STATION
WHERE CITY REGEXP '[aeiou]$'
* REGEXP에 대한 내용은 이전 포스팅 참고
반응형