Weather Observation Station 7 HackerRank Solution SQL

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:

SOURCE: HackerRank.com

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

Weather Observation Station 7 HackerRank Solution SQL

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

Attempthttps://www.hackerrank.com/challenges/weather-observation-station-7/

Leave a Comment