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
|
2441 Discussions
|
Please Login in order to post a comment
SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '^[^AEIOU].*[^AEIOU]$'
Any of the query can be used
select distinct city from station where left(city,1) not in ('a','e','i','o','u') and right(city,1) not in ('a','e','i','o','u');
select distinct city from station where city regexp '^[^aeiou]' and city regexp '[^aeiou]$';
SELECT DISTINCT city FROM station WHERE REGEXP_LIKE(city, '^[AEIOU]') = 0 AND REGEXP_LIKE(city, '[AEIOU]$') = 0 ;
select distinct city from station where city regexp '^[^aeiou]' and city regexp '[^aeiou]$';
SELECT DISTINCT CITY FROM STATION WHERE CITY NOT LIKE '[AEIOU]%' AND CITY NOT LIKE '%[AEIOU]';
Use in MS SQL Server