Practice > SQL > Basic Select > Weather Observation > Station 9

세번째 정규표현식 문제입니다.

Problem

Query the list of CITY names from STATION that do not start with vowels. Your result cannot contain duplicates.
문제링크

Answer

SELECT DISTINCT city
FROM Station
WHERE city NOT REGEXP '^[aeiou].*' 
-- REGEXP앞에 NOT만 붙여주면 됨, city 칼럼 빼놓지 말기

0개의 댓글