Q : STATION 테이블에서 모음으로 시작하지 않거나 모음으로 끝나지 않는 city를 가져올것.
단, city 순으로.
select distinct city from station
where substr(city,1,1) not in ('a','e','i','o','u')
or substr(city,-1,1) not in ('a','e','i','o','u')
order by city
;
문제출처 : HackerRank
문제풀이 : 나 (영어해석 및 SQL이 틀릴 수 있음)
'SQL공부' 카테고리의 다른 글
| [HackerRank 해커랭크] Employee Salaries (0) | 2022.11.09 |
|---|---|
| [HackerRank 해커랭크] Employee Names (0) | 2022.11.09 |
| [HackerRank 해커랭크] Revising the Select Query II (0) | 2022.11.09 |