CUME_DIST() OVER ...

All functions > WINDOW FUNCTION > CUME_DIST() OVER ...

Returns the cumulative distribution: (number of rows <= current row) / (total rows).

Syntax

Diagram(
  Sequence(
    Terminal("CUME_DIST"),
    Terminal("("),Terminal(")"),
    Terminal("OVER"),
    Terminal("("),
    NonTerminal("over_clause"),
    Terminal(")"),
  )
)
ParameterTypeRequiredDescription
over_clauseOVER CLAUSEYesOVER (PARTITION BY ... ORDER BY ... [FRAME ...])

Notes

  • Returns a value between 0 (exclusive) and 1 (inclusive)
  • Requires ORDER BY clause to determine row ordering
  • PARTITION BY creates independent distribution groups
Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19