HackerRank MySQL - Weather Observation Station 18




Query the Manhattan Distance between points P1 and P2 and round it to a scale of 4 decimal places.



  1. SELECT ROUND(MAX(LAT_N) - MIN(LAT_N) + MAX(LONG_W) - MIN(LONG_W), 4)
  2. FROM STATION;




codesadda.com

Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more. Sign Up for our weekly newsletter to get update about new content.

Like us on Facebook | Connect with us on LinkedIn | Subscribe our Channel on Youtube