DROP AGGREGATE (SQL)
Deletes a user-defined aggregate function.
FeedbackOpens in a new tab
DROP AGGREGATE [IF EXISTS] name
|IF EXISTS||Optional — Suppresses the error if the command is executed on a nonexistent aggregate function.|
|name||The name of the user-defined aggregate function to be deleted. The name can be qualified (schema.aggname), or unqualified (aggname). An unqualified name takes the default schema name.|
The DROP AGGREGATE command deletes a user-defined aggregate function (UDAF). A user-defined aggregate function is created using the CREATE AGGREGATE command.
If you attempt to drop a UDAF that does not exist, SQL issues an SQLCODE -428 error, with a message such as: User Defined Aggregate Function Sample.SecondHighest does not exist.
Dropping a UDAF automatically purges any cached queries that reference that UDAF.
CREATE AGGREGATE command
SQLCODE error messages listed in the InterSystems IRIS Error Reference