Weather Observation Station 13

Sort by

recency

|

1642 Discussions

|

  • + 0 comments

    MS SQL

    Had to look up CAST(num1 AS DECIMAL(num2, num3)) where num2 is maximum length and maximum allowable is 38 num3 is amount of decimals

    This function truncates the value num1

  • + 0 comments

    SELECT CAST(ROUND(SUM(LAT_N), 4) AS DECIMAL(10,4)) FROM STATION where LAT_N > 38.7880 and LAT_N < 137.2345;

  • + 0 comments

    select round(sum(LAT_N),4) from STATION where LAT_N between 38.7880 AND 137.2345;

  • + 0 comments

    SELECT ROUND(SUM(LAT_N),4) FROM STATION WHERE LAT_N>38.7880 AND LAT_N<137.2345;

  • + 0 comments
    SELECT ROUND(SUM(LAT_N), 4)
    FROM STATION
    WHERE 
    LAT_N BETWEEN 38.7880 AND 137.2345;