Weather Observation Station 6

Sort by

recency

|

4625 Discussions

|

  • + 2 comments

    SELECT DISTINCT City FROM Station WHERE City LIKE 'A%' or City LIKE 'E%' or City LIKE 'I%' or City LIKE 'O%' or City LIKE 'U%';

    Why this one is not correct?

  • + 0 comments

    select distinct city from station where substr(lower(city),1,1) in ('a','e','i','o','u');

  • + 1 comment

    Query resolved in two ways in SQL Server:

    1st SELECT city FROM station WHERE LEFT(city, 1) IN ('A','E','I','O','U');

    2nd SELECT city FROM station WHERE city LIKE 'A%' OR city LIKE 'E%' OR city LIKE 'I%' OR city LIKE 'O%' OR city LIKE 'U%';

  • + 0 comments

    Query resolved in two ways in SQL Server:

    1st SELECT city FROM station WHERE LEFT(city, 1) IN ('A','E','I','O','U');

    2nd SELECT city FROM station WHERE city LIKE 'A%' OR city LIKE 'E%' OR city LIKE 'I%' OR city LIKE 'O%' OR city LIKE 'U%';

  • + 0 comments

    SELECT DISTINCT CITY FROM STATION WHERE LEFT(CITY,1) IN ('a','e','i','o','u');