728x90
❓ Question
https://www.hackerrank.com/challenges/weather-observation-station-7
❗ Answer
SELECT DISTINCT(city)
FROM station
WHERE RIGHT(city,1) IN ('a','e','i','o','u');
📌 Discussion
- RIGHT(column,n)은 column의 data에서 오른쪽 끝부터 n번째까지 추출하는 함수
'SQL 문제풀이' 카테고리의 다른 글
[해커랭크 SQL] Basic Select - Weather Observation Station 9 (0) | 2023.08.18 |
---|---|
[해커랭크 SQL] Basic Select - Weather Observation Station 8 (0) | 2023.08.18 |
[해커랭크 SQL] Basic Select - Weather Observation Station 6 (0) | 2023.08.16 |
[해커랭크 SQL] Basic Select - Weather Observation Station 4 (0) | 2023.08.16 |
[해커랭크 SQL] Basic Select - Weather Observation Station 3 (0) | 2023.08.16 |