OkBublewrap

Weather Observation Station 10 본문

개발/SQL

Weather Observation Station 10

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

Query the list of CITY names from STATION that 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 '.*[aeoiu]$'

9와 마찬가지로 정규식을 이용을 했다. "$"은 끝부분을 뜻한다. 

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

진료과별 총 예약횟수 출력하기  (0) 2023.02.25
Weather Observation Station 11  (0) 2023.02.22
Weather Observation Station 9  (0) 2023.02.22
Weather Observation Station 8  (0) 2023.02.22
Weaher Observation Station 7  (0) 2023.02.22