# COALESCE() Function

### Description

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

### Syntax

```sql
COALESCE(expression1, expression2 ...)
```

### Parameters

| Parameter | Description | Data Type | Required |
| --- | --- | --- | --- |
| _expressions_ | Two or more expressions. | Any | Yes |

#### Notes

-   Operands must share compatible types.

### Example

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

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

> 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.
