Skip to content

Returns the smallest value whose cumulative distribution is >= the specified percentile.

func.percentile_disc(0.5)
func.percentile_disc(0.5)
┌───────┐
72000
└───────┘
PERCENTILE_DISC(0.5)
SELECT PERCENTILE_DISC(0.5) WITHIN GROUP (ORDER BY salary) FROM employees;
┌───────┐
72000
└───────┘