728x90
반응형
city 이름의 끝 자리가 모음으로 끝나지 않은 city를 출력하는 문제이다.
정규식을 이용해야하며, contain duplicates -> 중복 또한 제거해줘야한다.

정답 : select distinct city from station where city regexp '[^aeiou]$'
728x90
반응형
'Algorithm & SQL > SQL' 카테고리의 다른 글
| African Cities - BASIC JOIN (0) | 2022.06.09 |
|---|---|
| Population Census - BASIC JOIN (0) | 2022.06.09 |
| Weather Observation Station 9 (0) | 2022.06.08 |
| Weather Observation Station 8 (regexp 사용) (0) | 2022.06.07 |
| Weather Observation Station 7 (0) | 2022.06.07 |
댓글