Query the list of CITY names from STATION that either do not start with vowels or do not end with vowels. Your result cannot contain duplicates.
풀이
제출한 답
select distinct city
from station
where city not regexp '^[aeiou].*[aeiou]$'
-> .은 어떤 문자든 일치, *은 문자를 여러 번 반복
'데이터 분석 > SQL 연습문제' 카테고리의 다른 글
262. Trips and Users (LeetCode) (0) | 2023.03.27 |
---|---|
Weather Observation Station 20 (HackerRank) (0) | 2022.11.07 |
Ollivander's Inventory (HackerRank) (0) | 2022.11.05 |
SQL Project Planning (HackerRank) (0) | 2022.11.04 |
Binary Tree Nodes (HackerRank) (0) | 2022.11.03 |
댓글