Entering content frame

ALL function 

The ALL function is a set function that removes the NULL values.

Syntax

<all_function>::= <set_function_name> ( [ALL] <expression> )

set_function_name, expression

Explanation

The argument of an ALL function is a set of values that is calculated as follows:

  1. A result table or group (the result table can be grouped with a GROUP condition) is formed.
  2. The expression is applied to each row in this result table or group.
    The expression must not contain a set function.
  3. All NULL values are removed. Special NULL values are not removed and two special NULL values are considered identical.

The ALL function is executed taking into account the relevant set function name for the set of values.

The result of an ALL function is independent of whether the keyword ALL is specified or not.

 

Result of the ALL function

The set of values is empty and the ALL function is applied to the entire result table

The set functions AVG, MAX, MIN, STDDEV, SUM, VARIANCE supply the NULL value as their result.

The set function COUNT supplies the value 0.

There is no group to which the ALL function can be applied.

The result is an empty table.

The set of values contains at least one special NULL value.

Special NULL value

Leaving content frame