Weather Observation Station 7
잡학다식의 지식공방

빅데이터 관련 자료/[SQL] Basic

Weather Observation Station 7

carpe08 2021. 8. 5. 20:41
320x100

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

Input Format

The STATION table is described as follows:

 

 

 

 

 

 

# 나의 해답

 

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

320x100
320x100

'빅데이터 관련 자료 > [SQL] Basic' 카테고리의 다른 글

Weather Observation Station 9  (0) 2021.08.07
Weather Observation Station 8  (0) 2021.08.06
Weather Observation Station 6  (0) 2021.08.04
Weather Observation Station 5  (0) 2021.08.03
Weather Observation Station 4  (0) 2021.08.02