Qualification Aggregates and Target Records
A qualification aggregate functions as a full subquery. This means that ENFORM
computes the value for the aggregate over all the records in the data base file, (not over
the target records selected in the rest of the LIST or FIND statement) and uses the
result as input to the target list.
For example, the statement:
LIST BY job,
empname,
AVG (salary)
WHERE salary < AVG (salary);
gives:
All employees whose salaries are less than the average
The average of all salaries that are less than the average
058057 Tandem Computers Incorporated
ENFORM Language Elements
Aggregates
3–19