You are viewing a single comment's thread. Return to all comments →
SET @Num_row := -1;
SELECT
ROUND(AVG(S.LAT_N),4) AS AVG_LAT FROM ( SELECT @Num_row := @Num_row + 1 AS Num_row, LAT_N FROM STATION ORDER BY LAT_N ASC) AS S
WHERE Num_row IN (FLOOR(@Num_row/2),CEIL(@Num_row/2));
FROM STATION ORDER BY LAT_N ASC) AS S
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 20
You are viewing a single comment's thread. Return to all comments →
SET @Num_row := -1;
SELECT
WHERE Num_row IN (FLOOR(@Num_row/2),CEIL(@Num_row/2));
WHERE Num_row IN (FLOOR(@Num_row/2),CEIL(@Num_row/2));