Weather Observation Station 6 HackerRank Solution SQL

Query the list of CITY names starting with vowels (i.e., a, e, i, o, or 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 6 HackerRank Solution SQL

SELECT City
FROM Station
WHERE City LIKE 'A%' or City LIKE 'E%' or City LIKE 'I%' or City LIKE 'O%' or City LIKE 'U%';

Attempt – https://www.hackerrank.com/challenges/weather-observation-station-6

Leave a Comment