🤔 문제 분석
1) Query the list of CITY names starting with vowels (i.e., a, e, i, o, or u) from STATION. Your result cannot contain duplicates.
💡 풀이
SELECT CITY
FROM STATION
WHERE CITY LIKE "a%"
OR CITY LIKE "e%"
OR CITY LIKE "i%"
OR CITY LIKE "o%"
OR CITY LIKE "u%"
'코딩테스트 > 해커랭크 SQL' 카테고리의 다른 글
[해커랭크/SQL] 13. Weather Observation Station 8 (REGEXP) (0) | 2023.02.20 |
---|---|
[해커랭크/SQL] 12. Weather Observation Station 7 (0) | 2023.02.20 |
[해커랭크/SQL] 10. Weather Observation Station 5 (0) | 2023.02.15 |
[해커랭크/SQL] 9. Weather Observation Station 4 (0) | 2023.02.15 |
[해커랭크/SQL] 8. Weather Observation Station 3 (0) | 2023.02.15 |
댓글