Scoped GlideAggregate - addNotNullQuery(String fieldName)

Adds a not null query to the aggregate.

Table 1. Parameters
Name Type Description
fieldname String The name of the field.
Table 2. Returns
Type Description
GlideQueryCondition The scoped query condition.
var count = new GlideAggregate('incident');
  count.addNotNullQuery('short_description');
  count.query();   // Issue the query to the database to get all records
  while (count.next()) {   
     // add code here to process the aggregate
  }