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 8
Weather Observation Station 8
Sort by
recency
|
4525 Discussions
|
Please Login in order to post a comment
select distinct city from station where (lower(city) like 'a%' and lower(city) like '%a') or (lower(city) like 'e%' and lower(city) like '%e') or (lower(city) like 'i%' and lower(city) like '%i') or (lower(city) like 'o%' and lower(city) like '%o') or (lower(city) like 'u%' and lower(city) like '%u') order by city; I am getting output but it is displaying that it is wrong
SELECT DISTINCT CITY FROM STATION WHERE LOWER(LEFT(CITY,1)) IN ('a', 'e', 'i', 'o', 'u') AND LOWER(RIGHT(CITY,1)) IN ('a', 'e', 'i', 'o', 'u')
MS SQL SERVER:
select distinct city from station where city REGEXP '^[a,e,i,o,u]' and city Regexp '[a,e,i,o,u]$'
MYSQL select distinct city from station where city regexp '^(a|e|i|o|u).*(a|e|i|o|u)$';