Weather Observation Station 12

Sort by

recency

|

2441 Discussions

|

  • + 0 comments

    SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '^[^AEIOU].*[^AEIOU]$'

  • + 0 comments

    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]$';

  • + 0 comments

    SELECT DISTINCT city FROM station WHERE REGEXP_LIKE(city, '^[AEIOU]') = 0 AND REGEXP_LIKE(city, '[AEIOU]$') = 0 ;

  • + 0 comments

    select distinct city from station where city regexp '^[^aeiou]' and city regexp '[^aeiou]$';

  • + 0 comments

    SELECT DISTINCT CITY FROM STATION WHERE CITY NOT LIKE '[AEIOU]%' AND CITY NOT LIKE '%[AEIOU]';

    Use in MS SQL Server