Weather Observation Station 18

Sort by

recency

|

2341 Discussions

|

  • [deleted]
    + 1 comment

    For MySQL

    SELECT ROUND(MAX(lat_n)-MIN(lat_n) + MAX(long_w)-MIN(long_w), 4) FROM station;
    
  • + 0 comments

    db2 select CAST(round(max(LONG_W)- min(LONG_W),4) + round(max(LAT_N)- min(LAT_N),4) AS DECIMAL(10,4)) from STATION ;

  • + 0 comments

    SELECT ROUND( (MAX(LAT_N) - MIN(LAT_N)) + (MAX(LONG_W) - MIN(LONG_W)), 4 ) AS Manhattan_Distance FROM STATION;

  • + 0 comments

    MS SQL Server: WITH Manhattan AS(SELECT ABS(MIN(LAT_N) - MAX(LAT_N)) + ABS(MIN(LONG_W) - MAX(LONG_W)) AS distance FROM STATION
    ) SELECT CAST(distance AS decimal(10,4)) FROM Manhattan

  • + 0 comments

    select round((max(lat_n)+max(long_w))-(min(lat_n)+ min(long_w)),4) from station;

    this query works in oracle