We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Weather Observation Station 7
Weather Observation Station 7
Sort by
recency
|
3023 Discussions
|
Please Login in order to post a comment
select distinct city from station where lower(right(city,1)) in ('a','e','i','o','u');
cara 1: SELECT DISTINCT city FROM station WHERE RIGHT (city, 1) IN ('A', 'E', 'I', 'O', 'U');
cara 2: SELECT DISTINCT city FROM station WHERE city REGEXP '[aeiou]$';
oracle sql, used group by city insted of distinct city, I don't know reason but I looked funny so I added it.
select city from station where lower(substr(city,-1,1)) in ('a','e','i','o','u') group by city;
For MYSQL
select distinct city from station where lower(right(city,1)) in ("a","e","i","o","u")