Skip to content

Commit 7e6500a

Browse files
authored
Create weather_observation_station_19.sql
1 parent da16452 commit 7e6500a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
Consider (a,c) and (b,d) to be two points on a 2D plane where (a,b) are the
3+
respective minimum and maximum values of Northern Latitude (LAT_N) and (c,d) are the respective minimum and maximum values of Western Longitude (LONG_W) in
4+
*/
5+
6+
select round(sqrt(power((b - a),2) + power((d-c),2)) ,4) from (
7+
select
8+
min(LAT_N) as a, max(LAT_N) as b,
9+
min(LONG_W)as c, max(LONG_W) as d
10+
from station)k

0 commit comments

Comments
 (0)