# NVL() Function

### Description

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

### Syntax

```sql
NVL(expression, fallback)
```

### Parameters

| Parameter | Description | Data Type | Required |
| --- | --- | --- | --- |
| _expression_ | Column or expression to evaluate | Any | Yes |
| _fallback_ | The fallback argument | Any | Yes |

#### Notes

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

### Example

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

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference/nvl

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
