firebird icon indicating copy to clipboard operation
firebird copied to clipboard

Add aggregate percentile function support (PERCENTILE)

Open mylscompany opened this issue 2 months ago • 2 comments

It would be useful to have a built-in aggregate function in Firebird that computes percentiles (for example the 90th, 95th percentile) over a dataset. Currently there is no native support for percentile calculation in Firebird, which forces users to resort to procedural code or external post-processing. Such a function would simplify statistical analyses and reporting tasks where percentiles are required. The request is to consider adding an aggregate percentile function (or functions) as a feature to the SQL engine.

mylscompany avatar Oct 20 '25 18:10 mylscompany

In what way does window function PERCENT_RANK not work for you?

mrotteveel avatar Oct 21 '25 08:10 mrotteveel

In any case, this is probably a duplicate of #7632.

mrotteveel avatar Oct 21 '25 08:10 mrotteveel

Implimented in https://github.com/FirebirdSQL/firebird/pull/8807

sim1984 avatar Dec 23 '25 06:12 sim1984