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

ZEROIFNULL() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Returns zero if the value of the expression is NULL; Otherwise, returns the value of the input expression

Syntax​

ZEROIFNULL(expression)

Parameters​

ParameterDescriptionData TypeRequired
expressionColumn or expression to evaluateAnyYes

Example​

SELECT
ZEROIFNULL(col)
FROM
rippling.employee.Employee
LIMIT
5;