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
|
1518 Discussions
|
Please Login in order to post a comment
This code works for MySQL SELECT ROUND(SUM(LAT_N),2) as lat, ROUND(SUM(LONG_W),2) as lon FROM STATION;
My MS SQL Server Query
SELECT CAST(SUM(LAT_N) AS DECIMAL(15,2)), CAST(SUM(LONG_W) AS DECIMAL(15,2)) FROM STATION;
SELECT ROUND(SUM(LAT_N),2), ROUND(SUM(LONG_W),2) FROM STATION
MS SQL Server:
SELECT CAST(ROUND(SUM(lat_n), 2) AS DECIMAL(10,2)), CAST(ROUND(SUM(long_w), 2) AS DECIMAL(10,2)) FROM station;