Re: How do I get the median instead of average?
Quote
I'll get it right eventually :-)
And it will eventually finish.
If you have 1000 items, it will take a million operations to find the median. Just as Peter's link points out.
Peter's SP is better than my AUTO_INCREMENT in that it covers the case of an even number of items. (At least for numeric values.)
If you are using Perl or PHP, most of the SP work could be done there.
Subject
Written By
Posted
Re: How do I get the median instead of average?
June 30, 2010 08:06PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.