문제
https://www.hackerrank.com/challenges/weather-observation-station-9/problem?isFullScreen=true
Query the list of CITY names from STATION that do not start with vowels. Your result cannot contain duplicates.
○ STATION 테이블에서 CITY의 이름이 모음으로 시작하지 않는 것을 추출해라
○ 중복 X
풀이
SELECT DISTINCT(CITY)
FROM STATION
WHERE CITY REGEXP '^[^A|E|I|O|U]';
'SQL > HackerRank' 카테고리의 다른 글
[MySQL] Higher Than 75 Marks (0) | 2023.01.27 |
---|---|
[MySQL] Weather Observation Station 12 (0) | 2023.01.27 |
[MySQL] Weather Observation Station 11 (0) | 2023.01.27 |
[MySQL] Weather Observation Station 10 (0) | 2023.01.27 |
[MySQL] Weather Observation Station 8 (0) | 2023.01.27 |
[MySQL] Weather Observation Station 7 (0) | 2023.01.27 |
[MySQL] Weather Observation Station 6 (0) | 2023.01.27 |
[MySQL] Weather Observation Station 5 (0) | 2023.01.26 |