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

MIN function in Amazon QLDB

Important

End of support notice: Existing customers will be able to use Amazon QLDB until end of support on 07/31/2025. For more details, see Migrate an Amazon QLDB Ledger to Amazon Aurora PostgreSQL.

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

Syntax

MIN ( 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 MIN(r.PendingPenaltyTicketAmount) FROM VehicleRegistration r -- 30.45 SELECT MIN(a) FROM << { 'a' : 1 }, { 'a': 2 }, { 'a': 3 } >> -- 1

Related functions