Weather Observation Station 12

Sort by

recency

|

2339 Discussions

|

  • + 0 comments

    Solve using Regular Expression

    SELECT DISTINCT CITY FROM STATION

    WHERE CITY NOT REGEXP '^[aeiouAEIOU]' -- Does not start with a vowel

    AND CITY NOT REGEXP '[aeiouAEIOU]$'; -- Does not end with a vowel

  • + 0 comments

    MS SQL Sever:

    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' )

  • + 0 comments

    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')

  • + 0 comments

    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.

  • + 0 comments

    SELECT DISTINCT CITY FROM STATION WHERE CITY NOT RLIKE '^[aeiou]' AND CITY NOT RLIKE'[aeiou]$'