You are viewing a single comment's thread. Return to all comments →
SELECT cast(ROUND(SUM(LAT_N), 2) AS decimal(10,2))as lat, cast(ROUND(SUM(LONG_W), 2) AS decimal(10,2))AS lon FROM STATION;
we have to use cast fun that exactly uses the decimal 2 places
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 2
You are viewing a single comment's thread. Return to all comments →
SELECT cast(ROUND(SUM(LAT_N), 2) AS decimal(10,2))as lat, cast(ROUND(SUM(LONG_W), 2) AS decimal(10,2))AS lon FROM STATION;
we have to use cast fun that exactly uses the decimal 2 places