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

NVL() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Returns the first non-null value: expression when it is not NULL, otherwise fallback. Accepted COALESCE-style alias (parser normalizes to COALESCE).

Syntax​

NVL(expression, fallback)

Parameters​

ParameterDescriptionData TypeRequired
expressionColumn or expression to evaluateAnyYes
fallbackThe fallback argumentAnyYes

Notes​

  • Behaves like COALESCE(expression, fallback); parser normalizes to COALESCE.

Example​

SELECT
NVL(NULL, 'fallback')
FROM
my_table t
LIMIT
1;