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

COALESCE() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Returns the first non-NULL expression among its arguments, or NULL if all its arguments are NULL

Syntax​

COALESCE(expression1, expression2 ...)

Parameters​

ParameterDescriptionData TypeRequired
expressionsTwo or more expressions.AnyYes

Notes​

  • Operands must share compatible types.

Example​

SELECT
COALESCE(preferred_name, full_name)
FROM
rippling.employee.Employee
LIMIT
5;