![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb2pqjR%2FbtsI2q8Q0Qh%2Ff8nMMAPSrMmdTyl3ChN1Xk%2Fimg.png)
[MySQL/HackerRank] Weather Observation Station 7
·
SQL/HackerRank
Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates.Input FormatThe STATION table is described as follows:where LAT_N is the northern latitude and LONG_W is the western longitude.SELECT DISTINCT CITYFROM STATIONWHERE UPPER(RIGHT(CITY, 1)) IN ('A', 'E', 'I', 'O', 'U');