관리 메뉴

오늘도 배운다

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

코딩테스트연습(SQL)

Weather Observation Station 12 / HackerRank, SQL, MySQL

LearnerToRunner 2022. 12. 1. 19:31

문제

Query the list of CITY names from STATION that do not start with vowels and do not end with vowels. 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)

 

 

문제 바로가기(MySQL) 

 

728x90
Comments