X072: Cannot nest aggregate functions.

Aggregate functions cannot be nested one inside the other. For example, you cannot select:
Restriction: This topic applies to Windows environments only.
AVG(SUM(a))