Weather Observation Station 16

Sort by

recency

|

1085 Discussions

|

  • + 0 comments

    MySQL

    SELECT ROUND(LAT_N, 4) FROM STATION WHERE LAT_N > 38.7780 ORDER BY LAT_N LIMIT 1;

  • + 0 comments

    select cast(round(min(lat_n),5,1) as decimal(18,4)) from station where lat_n > 38.7780;

    this is for mssql. only when i change the value to 5 at round() that this works. i know the reasons why but i simply dunno how to explain. sorry.

  • + 0 comments

    For MS SQL Server

    SELECT TOP 1 CONVERT(DECIMAL(18, 4), LAT_N) FROM STATION WHERE LAT_N > 38.7780 ORDER BY LAT_N;
    
  • + 0 comments
    SELECT CAST(ROUND(MIN(LAT_N),4) AS NUMERIC(6,4))
    FROM STATION
    WHERE LAT_N > 38.7780;
    

    OR

    select cast(round(lat_n,4) as numeric(6,4)) 
    from station 
    where lat_n>38.7780 
    order by lat_n asc limit 1;
    
  • + 0 comments

    My answer:

    SELECT ROUND(MIN(LAT_N), 4)
    FROM STATION
    WHERE LAT_N > 38.7780;