본문 바로가기

Algorithm

(131)
[해커랭크(HackerRank)] Weather Observation Station 10 (MySQL) 문제 Query the list of CITY names from STATION that 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') Station 테이블에서 city 이름의 끝글자가 모음이 아닌 컬럼을 출력 중복 금지 출처
[해커랭크(HackerRank)] Weather Observation Station 9 (MySQL) 문제 Query the list of CITY names from STATION that do not start with vowels. 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) NOT IN ('a','e','i','o','u') Station 테이블에서 city 이름의 첫글자가 모음으로 시작하지 않는 컬럼 출력 중복 금지 정규표현식 SELECT distinct city FROM station WHERE city NOT REGEXP '^[aeio..
[해커랭크(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..