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

MAX() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Returns the maximum value from a set of values

Syntax​

MAX(expression)

Parameters​

ParameterDescriptionData TypeRequired
expressionColumn or expression to evaluateAnyYes

Notes​

  • When used as a window aggregate, include an OVER (...) clause.
  • Use QUALIFY (not WHERE) to filter rows based on a window calculation.

Example​

SELECT
MAX(salary)
FROM
rippling.employee.Employee
GROUP BY
department;