Weather Observation Station 19
Last updated
Last updated
Consider P1() and to be two points on a 2D plane where are the respective minimum and maximum values of Northern Latitude (LAT_N) and are the respective minimum and maximum values of Western Longitude (LONG_W) in STATION.
Query the between points and and format your answer to display decimal digits.
Input Format
The STATION table is described as follows:
where LAT_N is the northern latitude and LONG_W is the western longitude.
we will need four values from the station table: max lat_n, min latitude, max longitude, min longitude. The Euclidean Distance is
==>sqrt ( (a - b)^2 + (c - d)^2)).
The distance can be converted into ==> SQRT(POW(MAX(LAT_N)-MIN(LAT_N),2)+POW(MAX(LONG_W)-MIN(LONG_W),2))
round it to 4 decimal places ==> ROUND(SQRT(POW(MAX(LAT_N)-MIN(LAT_N),2)+POW(MAX(LONG_W)-MIN(LONG_W),2)),4)
from station table ==> FROM STATION