InterSystems IRIS TSQL Code 157 An aggregate may not appear in the set l

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

Error Code :

157

Reason for the Error code 157 in InterSystems IRIS DBMS

An aggregate may not appear in the set list of an UPDATE statement.