[hackerrank] Prepare > SQL > Basic Select > Weather Observation Station 7
[문제]
Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. 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.
[MYSQL]
[ORCALE]
select distinct(city)
from station
where regexp_like(city,'a$|e$|i$|o$|u$','i')
order by city;
https://neocan.tistory.com/348
반응형
'HackerRank > SQL' 카테고리의 다른 글
[hackerrank] Weather Observation Station 9 (0) | 2022.08.09 |
---|---|
[hackerrank] Weather Observation Station 8 (0) | 2022.08.08 |
[hackerrank] Weather Observation Station 6 (0) | 2022.08.08 |
[hackerrank] Weather Observation Station 5 (0) | 2022.08.08 |
[hackerrank] Weather Observation Station 4 (0) | 2022.08.08 |