As noted in http://planet.mysql.com/entry/?id=13588 :
SELECT
SUBSTRING_INDEX(
SUBSTRING_INDEX(
GROUP_CONCAT(
t.inbound
ORDER BY t.inbound
SEPARATOR ','
)
, ','
, 95/100 * COUNT(*) + 1
)
, ','
, -1
) AS `Inbound95`
,
SUBSTRING_INDEX(
SUBSTRING_INDEX(
GROUP_CONCAT(
t.outbound
ORDER BY t.outbound
SEPARATOR ','
)
, ','
, 95/100 * COUNT(*) + 1
)
, ','
, -1
) AS `Outbound95`
FROM traffic AS t WHERE t.server_id = 1
will give you the two percentiles
NOTE: you may need to increase group_concat_max_len