# MEDIAN() Function

### Description

Return the value separating the higher half from the lower half of a set of values

### Syntax

```sql
MEDIAN(expression)
```

### Parameters

| Parameter | Description | Data Type | Required |
| --- | --- | --- | --- |
| _expression_ | Column or expression to evaluate | Numeric | Yes |

### Example

```sql
SELECT
    MEDIAN(salary)
FROM
    rippling.employee.Employee
GROUP BY
    department;
```

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

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