Anusha Murali

Logo

Please see github.com/anusha-murali for all of my repositories.

View GitHub Profile

18. Weather Observation Station 3: Solution


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:

16

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


solution_image5

The MOD(N, k) function in Oracle returns the remainder when $N$ is divided by $k$.

SELECT DISTINCT CITY
FROM STATION
WHERE MOD(ID, 2) = 0;

Back to problems


anusha-murali.github.io