Entering content frame

-3021: Invalid mixture of functions and columns Locate the document in its SAP Library structure

Explanation:

  1. When quantity functions (COUNT, MAX, MIN, SUM, AVG, VARIANCE, STDDEV) occur in a <SELECT COLUMN>, non-group columns are not allowed in the <SELECT COLUMN>s.
  2. Quantity functions, e.g. AVG(SUM...), must not be nested.
  3. A corresponding subquery S contained in the <WHERE clause> of the <QUERY SPEC> Q must not contain quantity functions for columns of tables specified in the <FROM clause> of the <QUERY SPEC> Q.

User Action:

Correct the SQL statement.

Try to achieve the desired effect without nesting the quantity functions by using several QUERY statements each containing a quantity function.

Inside a QUERY statement the effect can be achieved by specifying a QUERY EXPRESSION in the FROM clause.

 

 

 

Leaving content frame