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 12
Weather Observation Station 12
Sort by
recency
|
2337 Discussions
|
Please Login in order to post a comment
MY SQL: SELECT DISTINCT CITY FROM STATION WHERE 1=1 AND RIGHT(CITY,1) NOT IN ('a','e','i','o','u') AND LEFT(CITY,1) NOT IN ('a','e','i','o','u')
Query the list of CITY names from STATION that do not start with vowels and do not end with vowels. Your result cannot contain duplicates.
SELECT DISTINCT CITY FROM STATION WHERE CITY NOT RLIKE '^[aeiou]' AND CITY NOT RLIKE'[aeiou]$'
SELECT DISTINCT city FROM station WHERE city NOT REGEXP '^[aeiou].*[aeiou]$'
Could anyone confirm what is wrong with this query?
MS SQL SEVER :
Select distinct(city) from station where city like '%[^a,e,i,o,u]' AND city like '[^a,e,i,o,u]%'