|
Question : Calculating Percentile Ranks in MS Access 2003
|
|
I have a table of about 500,000 records, and I want to determine the 10th, 20th, 30th, etc. percentiles on several different fields. Is there a quick and easy way to do this in Access?
|
|
Answer : Calculating Percentile Ranks in MS Access 2003
|
|
Hi jrimmele,
The following query gets the 10th %ile. To use a different percentile, udpate accordingly.
SELECT Max(s.SomeField) AS 10thPercentile FROM (SELECT TOP 10 PERCENT SomeField FROM SomeTable AS s ORDER BY s.SomeField) AS s
Regards,
Patrick
|
|
|
|