Using QMF

MAX. -- Calculate the maximum value

The MAX. column function returns the greatest value in the group of numbers or characters in a specified column. You can apply MAX. to columns of any type.

If MAX. is applied to a CHAR or VARCHAR type column, alphanumeric ordering is used.

QMF ignores null values when searching for the maximum. If all values specified in a column are null, QMF returns no value.

You can use an example element with MAX. to select the maximum years of employment and maximum salary from the Q.STAFF table.

When you run this query:



Q.STAFF | YEARS | SALARY     |            |            |
--------+-------+------------|------------+------------|
        | _Y    | _S         | P. MAX. _Y | P. MAX. _S |

QMF produces this report:

MAX(YEARS)   MAX(SALARY)
----------   -----------
        13      22959.20

Rules for MAX.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]