A .min( x )

Read(348) Label: loop, minimum value,

Description:

Compute x with each member of the sequence and then find the minimum value of the members of the new sequence

Syntax:

A.min(x)

Equivalent to A.(x).min()

Note:

The function loops through each member of sequence A to compute expression x and return the minimum value of members of the resulting sequence.

Parameters:

A

A sequence

x

Generally an expression of a single field name, or a legal expression composed of multiple field names.

Return value:

The minimum value of all members after computations have been performed on sequence A.  

Example:

 

A

 

1

=demo.query("select * from EMPLOYEE")

 

2

=A1.min(SALARY)

Compute the lowest non-null value of SALARY

3

=A1.(SALARY+100).min()

Add 100 to the salary of each employee and then compute the lowest salary

Related functions:

A.min()