SQL$HELP72.HLB  —  Errors  SQL_ERRORS, NESFUNINV
  Aggregate functions may not be nested

  Explanation:  Functions cannot contain other functions in their
  arguments.  For example, AVG(COUNT(DISTINCT(CITY)) is illegal.

  User Action:  Do not nest aggregate functions.
Close Help