728x90
❓ Question
https://www.hackerrank.com/challenges/weather-observation-station-10
❗ Answer
SELECT DISTINCT(city)
FROM station
WHERE RIGHT(city,1) NOT IN ('a','e','i','o','u');
📌 Discussion
- WHERE NOT IN으로 조건문에 포함되지 않는 레코드 추출
'SQL 문제풀이' 카테고리의 다른 글
[해커랭크 SQL] Basic Select - Weather Observation Station 12 (0) | 2023.08.18 |
---|---|
[해커랭크 SQL] Basic Select - Weather Observation Station 11 (0) | 2023.08.18 |
[해커랭크 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 7 (0) | 2023.08.18 |