Description
Returns the minimum value from a set of values
Syntax
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(notWHERE) to filter rows based on a window calculation.
Example
SELECT
MIN(salary)
FROM
rippling.employee.Employee
GROUP BY
department;