HackerRank-Aggregation-Weather Observation Station 15
Weather Observation Station 15
Query the Western Longitude (LONG_W) for the largest Northern Latitude (LAT_N) in STATION that is less than 137.2345 . Round your answer to 4 decimal places.
Input Format
The STATION table is described as follows:
**My solution **
SELECT ROUND(LONG_W, 4)
FROM
( SELECT *
FROM STATION
WHERE LAT_N < 137.2345
ORDER BY LAT_N DESC
)
WHERE ROWNUM = 1;
Comments