Calculating Percentile Using Cumulative Data in MySQL

Posted by Kirk on Stack Overflow See other posts from Stack Overflow or by Kirk
Published on 2010-04-02T02:15:36Z Indexed on 2010/04/02 2:23 UTC
Read the original article Hit count: 565

Filed under:
|

What should the percentile ranks be for each of these records and is there a MySQL query I can run to calculate the percentile?

id    score   cumulative_score     percentile
1     100     100                  ?
2     50      150                  ?
3     25      175                  ?
4     25      200                  ?
5     10      210                  ?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about mysql-query