We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
so basically we order all the values of lat_n in descending order that are less than 137.2345 and then by writing limit 1 we specify that we need the maximum or the largest value of lat_n that is less than 137.2345.
SELECT TRUNCATE(LAT_N,4)
FROM STATION
WHERE LAT_N < 137.2345
ORDER BY LAT_N DESC LIMIT 1;
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 15
You are viewing a single comment's thread. Return to all comments →
so basically we order all the values of lat_n in descending order that are less than 137.2345 and then by writing limit 1 we specify that we need the maximum or the largest value of lat_n that is less than 137.2345. SELECT TRUNCATE(LAT_N,4) FROM STATION WHERE LAT_N < 137.2345 ORDER BY LAT_N DESC LIMIT 1;