Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. Your result cannot contain duplicates.

SELECT DISTINCT(CITY) 
    FROM STATION
    WHERE (LOWER(CITY) LIKE 'a%'
    OR LOWER(CITY) LIKE 'e%'
    OR LOWER(CITY) LIKE 'i%'
    OR LOWER(CITY) LIKE 'o%'
    OR LOWER(CITY) LIKE 'u%')
    AND (CITY LIKE '%a'
    OR CITY LIKE '%e'
    OR CITY LIKE '%i'
    OR CITY LIKE '%o'
    OR CITY LIKE '%u')
Source by hoojiv.tistory.com #
 
PREVIOUS NEXT
Tagged: #Query #list #CITY #names #STATION #vowels #Your #result
ADD COMMENT
Topic
Name
7+6 =