# MIN() Function

### Description

Returns the minimum value from a set of values

### Syntax

```sql
MIN(expression)
```

### Parameters

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

#### Notes

-   When used as a window aggregate, include an `OVER (...)` clause.
-   Use `QUALIFY` (not `WHERE`) to filter rows based on a window calculation.

### Example

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

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

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