Weather Observation Station 11 query in SQL – Hacker Rank Solution

Weather Observation Station 11
Weather Observation Station 11 query in SQL – Hacker Rank Solution

Problem

Query the list of CITY names starting with vowels (i.e., aeio, or u) from STATION. Your result cannot contain duplicates.

Input Format

The STATION table is described as follows:

1449345840 5f0a551030 Station

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



Weather Observation Station 11 query in SQL – Hacker Rank Solution

select distinct city from station
where left(city,1) not in('a','e','i','o','u')
or right(city,1) not in('a','e','i','o','u');

Disclaimer: The above Problem (Weather Observation Station 11 query in SQL ) generated by Hackerrank but the Solution is Provided by Chase2Learn. This tutorial is only for Educational and Learning purposes. Authority if any of the queries regarding this post or website fill the following contact form thank you.

Leave a Comment