[hackerrank] Prepare > SQL > Basic Select > Weather Observation Station 12
[문제]
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.
[MYSQL]
[ORCALE]
select distinct(city)
from station
where not regexp_like(city,'^a|^e|^o|^u|^i','i')
and not regexp_like(city,'a$|e$|o$|u$|i$','i');
반응형
'HackerRank > SQL' 카테고리의 다른 글
[hackerrank] Employee Salaries (0) | 2022.08.09 |
---|---|
[hackerrank] Higher Than 75 Marks (0) | 2022.08.09 |
[hackerrank] Weather Observation Station 11 (0) | 2022.08.09 |
[hackerrank] Weather Observation Station 10 (0) | 2022.08.09 |
[hackerrank] Weather Observation Station 9 (0) | 2022.08.09 |