MAX function in Amazon QLDB - Amazon Quantum Ledger Database (Amazon QLDB)

MAX function in Amazon QLDB

In Amazon QLDB, use the MAX function to return the maximum value in a set of numeric values.

Syntax

MAX ( expression )

Arguments

expression

The field name or expression of a numeric data type that the function operates on.

Data types

Supported argument types:

  • int

  • decimal

  • float

Supported return types:

  • int

  • decimal

  • float

Examples

SELECT MAX(r.PendingPenaltyTicketAmount) FROM VehicleRegistration r -- 442.30 SELECT MAX(a) FROM << { 'a' : 1 }, { 'a': 2 }, { 'a': 3 } >> -- 3

Related functions