Hello coders, In this post, you will learn how to solve the Weather Observation Station 3 query in SQL Hacker Rank Solution. This problem is a part of the SQL Hacker Rank series.

Problem
Query a list of CITY names from STATION for cities that have an even ID number. Print the results in any order, but exclude duplicates from the answer.
The STATION table is described as follows:

where LAT_N is the northern latitude and LONG_W is the western longitude.
Weather Observation Station 3 query in SQL Hacker Rank Solution
SELECT DISTINCT CITY FROM STATION WHERE MOD(ID, 2) = 0 ORDER BY CITY;
Disclaimer: The above Problem (Weather Observation Station 3 query in SQL) generated by Hackerrank but the Solution is Provided by Chase2Learn. This tutorial is only for Educational and Learning purposes.