Algorithm


Problem Name: Sql - Weather Observation Station 7

Problem Link: https://www.hackerrank.com/challenges/weather-observation-station-7/problem?isFullScreen=true

In this HackerRank Functions in SQL problem solution,

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:

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

 

 

Code Examples

#1 Code Example with SQL

Code - 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';
Copy The Code & Try With Live Editor
Advertisements

Demonstration


Previous
[Solved] Weather Observation Station 6 in SQL solution in Hackerrank
Next
[Solved] Weather Observation Station 8 in SQL solution in Hackerrank