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.
*조건 : 문제 11과 흡사한데 'or' 부분을 'and'로 바꿔주는데 차이가 있다.
SELECT DISTINCT CITY
FROM STATION
WHERE REGEXP_LIKE(CITY,'^[^AEIOU]') AND NOT REGEXP_LIKE(CITY,'[aeiou]$') ;
Weather Observation Station 12 | HackerRank
Weather Observation Station 12 | HackerRank
Query an alphabetically ordered list of CITY names not starting and ending with vowels.
www.hackerrank.com
'문제풀이 > HackerRank' 카테고리의 다른 글
Employee Names (0) | 2022.11.03 |
---|---|
Higher Than 75 Marks (0) | 2022.11.03 |
Weather Observation Station 11 (0) | 2022.11.03 |
Weather Observation Station 10 (0) | 2022.11.03 |
Weather Observation Station 9 (0) | 2022.11.02 |