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 19
Weather Observation Station 19
Sort by
recency
|
2371 Discussions
|
Please Login in order to post a comment
in Ms Sql
with dist as ( select min(lat_n) as a,min(long_w) as b,max(lat_n) as x, max(long_w) as y from station) select cast(sqrt(power((x-a),2) + power((y-b),2)) as decimal(10,4)) from dist
mssql:
SELECT cast(round(sqrt(square(abs(max(lat_n)-min(lat_n))) + square(abs(max(long_w)-min(long_w)))),4) as decimal(10,4))
FROM station;
MYSQL Solution
`