Weather Observation Station 6

Sort by

recency

|

4683 Discussions

|

  • + 0 comments

    SELECT DISTINCT(city) FROM STATION WHERE city REGEXP '^[AEIOUaeiou]'; Simply REGEXP-Regular Expression used for filtering purpose ^ - Indicates beginning of the string

  • + 0 comments

    MS SQL SERVER:

    SELECT DISTINCT CITY FROM STATION
    WHERE CITY like '[aeiou]%' ;
    
  • + 0 comments

    SELECT City FROM Station WHERE City LIKE 'A%' OR CITY LIKE 'E%' OR CITY LIKE 'I%' OR CITY LIKE 'O%' OR CITY LIKE 'U%';

    You would be writing the right query with lowercase vowels strange your test case would fail just for lowercase

    Although the question says (a.e.i.o.u) the solution wont be accepted in lowercase make sure you guys make the vowels in uppercase to pass the test case silly isnt it ?

  • + 0 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%' ;

  • + 0 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%';