I\'m having trouble with calculating the median of a list of values, not the average.
I found this article Simple way to calculate median with MySQL
It has a
Simplest ways me and my friend have found out... ENJOY!!
SELECT count(*) INTO @c from station; select ROUND((@c+1)/2) into @final; SELECT round(lat_n,4) from station a where @final-1=(select count(lat_n) from station b where b.lat_n > a.lat_n);