Weather Observation Station 11

Sort by

recency

|

3831 Discussions

|

  • + 0 comments

    SELECT DISTINCT CITY FROM STATION WHERE SUBSTRING(CITY, 1, 1) NOT IN ('A', 'E', 'I', 'O', 'U') AND SUBSTRING(CITY, LENGTH(CITY), 1) NOT IN ('A', 'E', 'I', 'O', 'U');why this is not working

  • + 0 comments

    select distinct(CITY) FROM STATION

    WHERE right(city,1) not IN ('a','e','i','o','u') or
    left(city,1) not IN ('a','e','i','o','u')

  • + 0 comments

    SELECT DISTINCT CITY FROM STATION WHERE NOT ((CITY LIKE 'A%' OR CITY LIKE 'E%' OR CITY LIKE 'I%' OR CITY LIKE 'O%' OR CITY LIKE 'U%') AND (CITY LIKE '%A' OR CITY LIKE '%E' OR CITY LIKE '%I' OR CITY LIKE '%O' OR CITY LIKE '%U'));

  • + 0 comments

    The task, asks for cities that either do not start with vowels 'OR' do not end with vowels. This is a logical "OR" condition, not "AND".

    SELECT DISTINCT CITY FROM STATION WHERE LEFT(CITY, 1) NOT IN ('A', 'E', 'I', 'O', 'U') OR RIGHT(CITY, 1) NOT IN ('a', 'e', 'i', 'o', 'u');

  • + 1 comment

    SELECT DISTINCT city FROM station WHERE city REGEXP '^[^AEIOU]|.*[^AEIOU]$';