IBM DB2 Error Code -120 – an aggregate function or olap specificat

In this post, you’ll learn about the IBM DB2 Error -120 and the reason why you are receiving it

IBM DB2 Error Code :

-120

Reason for this Error in DB2

AN AGGREGATE FUNCTION OR OLAP SPECIFICATION IS NOT VALID IN THE CONTEXT IN WHICH IT WAS INVOKED