cume_dist ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → double precisionComputes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/
N to 1.Functions / Aggregate Functions
Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows).
Reading PG 18current·documented in 19 of 27 versions, 8.4 to 20
cume_dist ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → double precisionComputes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/
N to 1.cume_dist () → double precisionReturns the cumulative distribution, that is (number of partition rows preceding or peers with current row) / (total partition rows). The value thus ranges from 1/
N to 1.Definition snapshot: b7bd9cda · English manual source