728x90

문제

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

 

Weather Observation Station 11 | HackerRank

Query a list of CITY names not starting or ending with vowels.

www.hackerrank.com

 

 

 

 

 

풀이(MSSQL)

SELECT DISTINCT CITY 
  FROM STATION
 WHERE NOT CITY LIKE '[aeuio]%' 
    OR NOT CITY LIKE '%[aeuio]'

 

300x250