- Weather Observation Station 19

 Consider  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 Euclidean Distance 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.


MySql:

select round(sqrt(((power((min(lat_n)-max(lat_n)),2))+power((min(long_w)-max(long_w)),2))),4) from station

Compiler Message
Success
Input (stdin)
  • INPUT
Expected Output
  • 184.1616

Post a Comment

Previous Post Next Post