Description
Adds or subtracts specified time units to/from a date or timestamp
Syntax
INTERVAL value unit
Parameters
| Parameter | Description | Required |
|---|---|---|
| value | The numeric value representing the duration of the interval | Yes |
| unit | The unit of time for the interval, such as YEAR, MONTH, DAY, HOUR, MINUTE, SECOND, etc | Yes |
Example
SELECT start_date - INTERVAL '1 month'
FROM rippling.employee.Employee;