Weather Observation Station 2

Sort by

recency

|

1445 Discussions

|

  • + 0 comments

    MYSQL

    select ROUND(sum(LAT_N),2), ROUND(SUM(LONG_W),2) from STATION

  • + 0 comments

    SELECT cast(SUM(LAT_N) as decimal(10,2))as lat, cast(SUM(LONG_W)as decimal(10,2)) as lon FROM Station;

    The decimal function cuts the decimal points upto 2 so, we will get the right ans

  • + 0 comments

    select round(sum(LAT_N),2), round(sum(LONG_W),2) from station;

  • + 0 comments

    select rtrim(cast(round(sum(lat_n),2) AS varchar),'0') as lat, rtrim(cast(round(sum(long_w),2) AS varchar),'0') as lon from station

  • + 0 comments

    SELECT CAST(ROUND(SUM(LAT_N), 2) AS DECIMAL(10,2)), CAST(ROUND(SUM(LONG_W), 2) AS DECIMAL(10,2))
    FROM STATION;