-
Weather Observation Station 18SQL 2023. 2. 13. 18:11
Consider P1(a,b) and P2(c,d) to be two points on a 2D plane.
- happens to equal the minimum value in Northern Latitude (LAT_N in STATION).
- happens to equal the minimum value in Western Longitude (LONG_W in STATION).
- happens to equal the maximum value in Northern Latitude (LAT_N in STATION).
- happens to equal the maximum value in Western Longitude (LONG_W in STATION).
Query the Manhattan Distance between points P1 and P2 and round it to a scale of decimal places.
select round(max(lat_n) - min(lat_n), 4)+ round(max(long_w) - min(long_w), 4) from station
'SQL' 카테고리의 다른 글
Weather Observation Station 14 (0) 2023.02.23 Weather Observation Station 11 (0) 2023.02.20 Weather Observation Station 13 (0) 2023.02.13 오랜 기간 보호한 동물(2) (0) 2023.02.08 있었는데요 없었습니다 (0) 2023.02.08