Weather Observation Station 19

Sort by

recency

|

2331 Discussions

|

  • + 0 comments

    for mysql:

    SELECT ROUND( SQRT( POWER(MAX(LAT_N) - MIN(LAT_N), 2) + POWER(MAX(LONG_W) - MIN(LONG_W), 2) ), 4 ) AS euclidean_distance FROM STATION;

  • + 0 comments
    SELECT CAST (
        SQRT (
            SQUARE(MIN([LAT_N]) - MAX([LAT_N])) +
            SQUARE(MIN([LONG_W]) - MAX([LONG_W]))
        )
        AS DECIMAL(10,4)
    )
    FROM STATION;
    
  • + 0 comments

    SELECT FORMAT(ROUND(SQRT(POWER(MAX(LAT_N)-MIN(LAT_N),2) + POWER(MAX(LONG_W)-MIN(LONG_W),2)),4), 'N4') FROM STATION; ====================184.1616============================

  • + 0 comments
    select round(sqrt(
    power(max(p2.LAT_N)-min(p1.LAT_N),2) + power(max(p2.LONG_W)-min(p1.LONG_W),2)
                 ),4) from STATION p1,STATION p2 where p1.ID = p2.ID
    
  • + 0 comments
    select round(sqrt(
    power(max(p2.LAT_N)-min(p1.LAT_N),2) + power(max(p2.LONG_W)-min(p1.LONG_W),2)
                 ),4) from STATION p1,STATION p2 where p1.ID = p2.ID