CUME_DIST()
Relative rank (or, cumulative distribution) of a row within a window partition
DOUBLE PRECISION
CUME_DIST () OVER <window_name_or_spec>
CUME_DIST
is calculated as the number of rows preceding or peer of the current row divided by the number of rows in the partition.
In other words, CUME_DIST() OVER <window_name_or_spec>
is equivalent to COUNT(*) OVER <window_name_or_spec> / COUNT(*) OVER()