MIN()

Scalar. Returns the minimum value from a list of expressions.

Syntax

MIN( expression, expression [, ...] )
Data Types

Return

expression

Integer

Integer

Long

Long

Float

Float

Interval

Interval

Timestamp

Timestamp

String

String

BLOB

BLOB

Usage

If any parameter is NULL, the function returns NULL.

Example

The following example calculates the minimum value of three columns in the Orders stream:

INSERT INTO OutStream
SELECT MIN(Orders.line1price, Orders.line2price, Orders.line3Price)
FROM Orders;