OkBublewrap

Weather Observation Station 11 본문

개발/SQL

Weather Observation Station 11

옥뽁뽁 2023. 2. 22. 08:54

Query the list of CITY names from STATION that either do not start with vowels or 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.

모음으로 시작하거나 끝나도 않은 것, 중복 되지 말 것

SELECT DISTINCT city
FROM station
WHERE city NOT REGEXP '^[aeiou].*'
OR city NOT REGEXP '.*[aeiou]$'

 

'개발 > SQL' 카테고리의 다른 글

Null 처리하기  (0) 2023.02.25
진료과별 총 예약횟수 출력하기  (0) 2023.02.25
Weather Observation Station 10  (0) 2023.02.22
Weather Observation Station 9  (0) 2023.02.22
Weather Observation Station 8  (0) 2023.02.22