LEAST

Purpose

This function returns the smallest of the specified expressions.

Syntax

least::=

Usage Notes

  • The data type BOOLEAN is not supported.

  • If one of the arguments is NULL, the function returns NULL.

Example

SELECT LEAST(3,1,5) LEAST;