Hello coders, In this post, you will learn how to solve the Weather Observation Station 12 SQL Hacker Rank Solution. This problem is a part of the SQL Hacker Rank series.
Query the list of CITY names from STATION that do not start with vowels and do not end with vowels. Your result cannot contain duplicates.
The STATION table is described as follows:
where LAT_N is the northern latitude and LONG_W is the western longitude.
Weather Observation Station 12 SQL Hacker Rank Solution
SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '^[^aeiouAEIOU]' AND CITY REGEXP '[^aeiouAEIOU]$';