~고군분투 인생살이~

[EASY] Weather Observation Station 9 본문

SQL/HACKER_RANK

[EASY] Weather Observation Station 9

소금깨 2022. 5. 29. 14:43

1. 문제 설명

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

2. 문제 풀이

3. 결과 

SELECT DISTINCT CITY
FROM STATION
WHERE CITY REGEXP '^[^AEIOU].*'

'SQL > HACKER_RANK' 카테고리의 다른 글

[HACKER_RANK] Interviews  (0) 2022.06.13
[HACKER_RANK] THE-PADS  (0) 2022.06.13
[EASY] Weather Observation Station 8  (0) 2022.05.29
[EASY] Weather Observation Station 7  (0) 2022.05.29
[EASY] Weather Observation Station 6  (0) 2022.05.29
Comments