Algorithm


Problem Name: Sql - Weather Observation Station 16

Problem Link: https://www.hackerrank.com/challenges/weather-observation-station-16/problem?isFullScreen=true 

In this HackerRank Functions in SQL problem solution,

Query the smallest Northern Latitude (LAT_N) from STATION that is greater than 38.7780. Round your answer to 4 decimal places.

Input Format

The STATION table is described as follows:

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

 

 

Code Examples

#1 Code Example with MySQL

Code - MySQL


SELECT 
    ROUND(MIN(LAT_N), 4)
FROM
    STATION
WHERE
    LAT_N > 38.7780;
Copy The Code & Try With Live Editor
Advertisements

Demonstration


Previous
[Solved] Weather Observation Station 15 in SQL solution in Hackerrank
Next
[Solved] Weather Observation Station 17 in SQL solution in Hackerrank