Weather Observation Station 8
Data Analyst

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

Weather Observation Station 8

carpe08 2021. 8. 6. 15:18
320x100
320x100

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.

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%')
AND (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 10  (0) 2021.08.08
Weather Observation Station 9  (0) 2021.08.07
Weather Observation Station 7  (0) 2021.08.05
Weather Observation Station 6  (0) 2021.08.04
Weather Observation Station 5  (0) 2021.08.03