ORA-35282
(SNSYN166) The format of the AGGREGATE function is:
AGGREGATE(varname [USING aggmap-name] [COUNTVAR intvar-name] [FORCECALC] [FORCEORDER] [{FROM|FROMVAR} fromname [, fromname2 ...]])
AGGREGATE(varname [USING aggmap-name] [COUNTVAR intvar-name] [FORCECALC] [FORCEORDER] [{FROM|FROMVAR} fromname [, fromname2 ...]])
Cause
The syntax of the AGGREGATE function was invalid.
Action
Check the error message text or Oracle Documentation for the correct syntax.