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

INTERVAL keyword

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Adds or subtracts specified time units to/from a date or timestamp

Syntax​

INTERVAL value unit

Parameters​

ParameterDescriptionRequired
valueThe numeric value representing the duration of the intervalYes
unitThe unit of time for the interval, such as YEAR, MONTH, DAY, HOUR, MINUTE, SECOND, etcYes

Example​

SELECT  start_date - INTERVAL '1 month'
FROM rippling.employee.Employee;