Im between cherry

Hackerrank | MySQL | Weather Observation Station 7 본문

데이터분석/practice_query

Hackerrank | MySQL | Weather Observation Station 7

meal 2020. 8. 27. 18:47

Weather Observation Station 7

Problem

 

Weather Observation Station 7 | HackerRank

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

www.hackerrank.com

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:

where LAT_N is the northern latitude and LONG_W is the western longitude.

 

 

Solution

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