Error 150

"Invalid use of an aggregate function"

Item Description

SQLCode

-150L

Constant

AGGREGATES_NOT_ALLOWED

SQLState

42W06

ODBC 2 State

37000

ODBC 3 State

42000

Sybase Error Code

2093

Severity Code

15

Probable cause

You attempted to use an aggregate function inappropriately. For example, a SELECT statement cannot contain an aggregate function within a predicate in the WHERE clause unless the aggregate function constitutes an outer reference. Other invalid uses include specifying an aggregate function in the SET clause of an UPDATE statement, or using an aggregate function in a CHECK constraint.


Created May 6, 2011. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com