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

DATE_OF_CHANGE() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Calculates date of change for a given attribute

Change TypeDescription
FIRSTReturns the date of the first time an attribute was updated
LASTReturns the date of the last time an attribute was updated
INDEXReturns the date of the Nth time an attribute was updated; Positive and negative indexes are supported

Syntax​

DATE_OF_CHANGE(expression, change_type)

Parameters​

ParameterDescriptionData TypeRequired
fieldThe field argumentAnyYes
as_ofThe as of argumentDate or timestampNo

Example​

SELECT
DATE_OF_CHANGE(salary, start_date)
FROM
rippling.employee.Employee
LIMIT
5;