HackerRank SQL

Weather Observation Station 17

Input Format

The STATION table is described as follows:

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

Solution:

select str(round(LONG_W, 4), 10, 4) from STATION where LAT_N = (select min(LAT_N) from STATION where LAT_N > 38.7780);

--

--

My homepage to record my thought processes for solving SQL and Algorithm questions

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store