DB2 SQL-Error: -112
Short Description: THE OPERAND OF A AGGREGATE FUNCTION INCLUDES AN AGGREGATE FUNCTION OR A SCALAR FULLSELECT
The operand of an aggregate function can be either an expression or DISTINCT followed by an expression. The operand cannot be another aggregate function or a scalar fullselect. System action: The statement cannot be executed. Programmer response: Correct the function specification. Refer to Chapter 3 of DB2 SQL Reference for information about the proper usage of aggregate functions.