[해커랭크(HackerRank)] Weather Observation Station 11 (MySQL)
문제 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. Input Format The STATION table is described as follows: 코드 SELECT distinct city FROM Station WHERE substring(city, -1) NOT IN ('a','e','i','o','u') OR substring(city, 1, 1) NOT IN ('a','e','i','o','u') Station테이블에서 city이름의 첫글자나 끝글자가 모음이 아닌 컬럼 출력 중복 금..
[해커랭크(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이름의 첫글..