Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 555 Bytes

File metadata and controls

20 lines (14 loc) · 555 Bytes
description
Returns the smallest value from a list of expressions.

LEAST

Syntax

LEAST(expression) → same as input type

  • expression: The arguments must include at least one expression. All the expressions should be of the same type or compatible types. Expressions must be of primitive data types.

Examples

{% code title="LEAST example" %}

SELECT LEAST(1, 5, 3, 8)
-- 1

{% endcode %}