Weather Observation Station 7

  • + 0 comments

    Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates.

    1. result cannot duplicates == use "DISTINCT"
    2. list of CITY names . . . from STATION == "SELECT DISTINCT CITY FROM STATION"
    3. list of CITY names ending with vowels (a, e, i, o, u) == use LIKE, find ending use "%symbols", example '%a'

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