[해커랭크(HackerRank)] Weather Observation Station 8 (MySQL)
문제 Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. Your result cannot contain duplicates. Input Format The STATION table is described as follows: 코드 Substring Select distinct city From Station Where substring(city, 1, 1) IN ('a','e','i','o','u') And substring(city, -1) IN ('a','e','i','o','u') Station 테이블에서 city이름의 첫글..
[해커랭크(HackerRank)] Weather Observation Station 7 (MySQL)
문제 Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates. Input Format The STATION table is described as follows: 코드 substring SELECT DISTINCT city FROM Station WHERE substring(city, -1) IN ('a','e','i','o','u') Station 테이블에서 city 이름의 마지막 글자가 모음(a,e,i,o,u)인 목록을 출력 중복 금지 정규표현식 SELECT distinct city FROM Station WHERE city REGEXP '.*[aei..