# NULLIF() Function

### Description

Returns NULL if expression1 is equal to expression2, otherwise returns expression1

### Syntax

```sql
NULLIF(expression1, expression2)
```

### Parameters

| Parameter | Description | Required |
| --- | --- | --- |
| _expression1_ | Any general expression of any data type | Yes |
| _expression2_ | Any general expression that evaluates to the same data type as expression2 | Yes |

### Example

```sql
SELECT 
  NULLIF(full_name, CONCAT(e.preferred_first_name, ' ' , e.preferred_last_name) as full_name) 
FROM 
  rippling.employee.Employee;
```

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

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