For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
index

STDDEV_SAMP() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Calculates the standard deviation of a numeric column or expression

Syntax​

STDDEV_SAMP(expression)

Parameters​

ParameterDescriptionData TypeRequired
expressionColumn or expression to evaluateNumericYes

Notes​

  • Scaled by 1/(N-1)
  • Can also be used inside of window aggregates
  • When used as a window aggregate, include an OVER (...) clause.
  • Use QUALIFY (not WHERE) to filter rows based on a window calculation.

Example​

SELECT
department, STDDEV_SAMP(salary) OVER (PARTITION BY department ORDER BY start_date) AS std
FROM
rippling.employee.Employee;