[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');