ÃÛ¶¹ÊÓƵ

min min

Returns the minimum value among a set of expressions, given either as a list or two expressions. Null values are ignored.

Category

Aggregation

Function syntax

min(<parameters>)

Parameters

  • listDuration
  • listInteger
  • listDecimal
  • listDateTime
  • listDateTimeOnly
  • listDateOnly
  • duration
  • integer
  • decimal
  • dateTime
  • dateTimeOnly

Signatures and returned types

min(<listDuration>)

Returns a duration.

min(<listInteger>)

Returns a duration.

min(<listDateTimeOnly>)

Returns a datetime without considering time zone.

min(<listDateTime>)

Returns a datetime.

min(<listDateOnly>)

Returns a date.

min(<listDecimal>)

Returns a decimal.

min(<decimal>,<decimal>)

Returns a decimal.

min(<duration>,<duration>)

Returns a duration.

min(<dateTime>,<dateTime>)

Returns a datetime.

min(<dateTimeOnly>,<dateTimeOnly>)

Returns a datetime without considering time zone.

min(<integer>,<integer>)

Returns an integer.

Examples

min(@event{BarBeacon.inventory},5)

min([10,3,8])

Returns 3.

min([10,null,8])

Returns 8.

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76