VAR_SAMP() OVER ...
All functions > WINDOW FUNCTION > VAR_SAMP() OVER ...
Returns the sample variance over the window frame.
Syntax
Diagram(
Sequence(
Terminal("VAR_SAMP"),
Terminal("("),NonTerminal('expr'),Terminal(")"),
Terminal("OVER"),
Terminal("("),
NonTerminal("over_clause"),
Terminal(")"),
)
)| Parameter | Type | Required | Description |
|---|---|---|---|
expr | EXPRESSION | Yes | Numeric expression to compute variance of |
over_clause | OVER CLAUSE | Yes | OVER (PARTITION BY ... ORDER BY ... [FRAME ...]) |
Notes
- Computes sample variance (divides by N-1) over a window of rows
- NULL values are ignored in the calculation