Weather Observation Station 9 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:

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

Weather Observation Station 9 query in SQL – Hacker Rank Solution

Code:

SELECT DISTINCT CITY FROM STATION 
WHERE NOT (CITY LIKE 'a%' OR CITY LIKE 'e%'
    OR CITY LIKE 'i%' OR CITY LIKE 'o%' OR CITY LIKE 'u%');

Disclaimer: The above Problem (Weather Observation Station 9 query in SQL ) generated by Hackerrank but the Solution is Provided by MultiplexCoder. This tutorial is only for Educational and Learning purposes.

Tags:    hackerrank sql questions and answers | big companies hackerrank sql solutions | student analysis sql hackerrank solution | challenges sql hackerrank solution | hackerrank sql basic certification solutions | product amount details hackerrank solution | hackerrank sql basic join solutions | hackerrank-sql certification solutions | 2021

Previous
Next Post »