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.
Weather Observation Station 2
Weather Observation Station 2
Sort by
recency
|
1445 Discussions
|
Please Login in order to post a comment
MYSQL
select ROUND(sum(LAT_N),2), ROUND(SUM(LONG_W),2) from STATION
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
select round(sum(LAT_N),2), round(sum(LONG_W),2) from station;
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
SELECT CAST(ROUND(SUM(LAT_N), 2) AS DECIMAL(10,2)), CAST(ROUND(SUM(LONG_W), 2) AS DECIMAL(10,2))
FROM STATION;