GlideAggregate

The GlideAggregate class is an extension of GlideRecord and allows database aggregation (COUNT, SUM, MIN, MAX, AVG) queries to be done. This can be helpful in creating customized reports or in calculations for calculated fields.

For additional information on these APIs, see GlideAggregate and GlideRecord on the ServiceNow Developers site.
Note: This functionality requires a knowledge of JavaScript.

See the ServiceNow Developers site for API information.