We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Weather Observation Station 20
Weather Observation Station 20
Sort by
recency
|
3938 Discussions
|
Please Login in order to post a comment
Select Round(avg(lat_n),4) From ( Select Lat_n, row_number() over(order by lat_n asc) as RN, Count(*) over() as TR From Station ) as SQ Where RN = CEIL(TR/2) or RN = Floor(TR/2)+1;
select round(lat_n,4) from station order by lat_n LIMIT 1 OFFSET 249;
set @tot = (select count(id) from station);
select case when mod(@tot,2)=0 then (select round(avg(lat_n),4) from (select *,row_number() over (order by lat_n) as rown from station) sub where rown=(@tot/2) or rown=(@tot/2-1)) else (select round(lat_n,4) from (select *,row_number() over (order by lat_n) as rown from station) sub where rown=ceil(@tot/2)) end;