Query the list of CITY names from STATION that do not start 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.
*조건 : CITY를 가져와라
단, 중복은 안되고 AEIOU로 시작해서도 안된다.
select distinct city
from station
where substr(city,1,1) not in ('A','E','I','O','U') ;
MYSQL은 WHERE CITY REGEXP '^[^AEIOU] '
'문제풀이 > HackerRank' 카테고리의 다른 글
Weather Observation Station 11 (0) | 2022.11.03 |
---|---|
Weather Observation Station 10 (0) | 2022.11.03 |
Weather Observation Station 8 (0) | 2022.11.02 |
weather observation station 7 (0) | 2022.11.02 |
weather observation station 6 (0) | 2022.11.02 |