728x90

문제

https://www.hackerrank.com/challenges/weather-observation-station-12/problem?isFullScreen=true

 

Weather Observation Station 12 | HackerRank

Query an alphabetically ordered list of CITY names not starting and ending with vowels.

www.hackerrank.com

 

 

 

 

 

 

 

풀이(MSSQL)

SELECT DISTINCT CITY 
  FROM STATION
 WHERE NOT CITY LIKE '[aeuio]%' 
   AND NOT CITY LIKE '%[aeuio]'
300x250