InterSystems IRIS TSQL Code 130 Cannot perform an aggregate function on

In this post, you’ll learn about the SQL error code 130 in InterSystems IRIS database the reason why you are receiving the TSQL message when using the InterSystems IRIS data platform

Error Code :

130

Reason for the Error code 130 in InterSystems IRIS DBMS

Cannot perform an aggregate function on an expression containing an aggregate or a subquery.