Skip to content

Commit

Permalink
Generated docs using ./dev/update_function_docs.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rluvaton committed Dec 14, 2024
1 parent bfa1abc commit 25af65d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/source/user-guide/sql/scalar_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ trunc(numeric_expression[, decimal_places])
- [coalesce](#coalesce)
- [greatest](#greatest)
- [ifnull](#ifnull)
- [least](#least)
- [nullif](#nullif)
- [nvl](#nvl)
- [nvl2](#nvl2)
Expand Down Expand Up @@ -603,6 +604,29 @@ greatest(expression1[, ..., expression_n])

_Alias of [nvl](#nvl)._

### `least`

Returns the smallest value in a list of expressions. Returns _null_ if all expressions are _null_.

```
least(expression1[, ..., expression_n])
```

#### Arguments

- **expression1, expression_n**: Expressions to compare and return the smallest value.. Can be a constant, column, or function, and any combination of arithmetic operators. Pass as many expression arguments as necessary.

#### Example

```sql
> select least(4, 7, 5);
+---------------------------+
| least(4,7,5) |
+---------------------------+
| 4 |
+---------------------------+
```

### `nullif`

Returns _null_ if _expression1_ equals _expression2_; otherwise it returns _expression1_.
Expand Down

0 comments on commit 25af65d

Please sign in to comment.