관리 메뉴

오늘도 배운다

Weather Observation Station 8 / HackerRank, SQL, MySQL 본문

코딩테스트연습(SQL)

Weather Observation Station 8 / HackerRank, SQL, MySQL

LearnerToRunner 2022. 12. 1. 19:21

문제

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:

 

제출답안(MySQL)

SELECT DISTINCT(city) FROM station
WHERE city REGEXP '^[aeiou].*[aeiou]$'

 

 

문제 바로가기(MySQL) 

 

728x90
Comments