CUME_DIST
functionsupportedCore SQL functionsFinds the cumulative distribution of a value with regard to other values within the same window partition.
Syntax
supportedpartialnot supportednot scored
CUME_DIST() OVER ( [ PARTITION BY <partition_expr> ]
ORDER BY <order_expr> [ { ASC | DESC } ] [ NULLS { FIRST | LAST } ] )
Parameters
| Name | Required | Description |
|---|---|---|
partition_expr | required | This is the optional expression to use to group rows into partitions. |
order_expr | required | This expression specifies the order of the rows within each partition. |
Returns
The data type of the returned value is DOUBLE.
Usage notes
- The CUME_DIST function does not support explicit window frames.