Skip to content

Returns the percentile value using a low-cardinality optimized algorithm.

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