Aggregates - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

ENFORM Language Elements

Aggregates

Aggregates
3–12
ENFORM allows you to reference nested data base tables. For example:
tot-sales
tot-sales[4].wkly-sales[2]
tot-sales[1:5].wkly-sales[3]
tot-sales[2:3].wkly-sales[1:4] Refers to the first thru fourth elements of
An aggregate is the result of a cumulative operation performed for each value that
contributes to the aggregate. An aggregate yields a single value for the group of
values over which it is processed. Aggregates can only be specified as a target-item or
in a request-qualification. Aggregates specified as a target-item are called target
aggregates. Aggregates specified in a request-qualification are called qualification
aggregates.
ENFORM provides two types of aggregates: predefined and user-defined.
The syntax used for an aggregate is:
AVG
COUNT
MAX
MIN
SUM
user-aggregate
AVG
COUNT
SUM
MAX
MIN
user-aggregate
AVG
is a predefined ENFORM aggregate that computes an average value for a set of
numbers or expressions.
058057 Tandem Computers Incorporated
Refers to month, top-dept, and the first
through last elements of wkly-sales within
the first element of tot-sales.
Refers to the second element of wkly-sales
within the fourth element of tot-sales.
Refers to the third element of wkly-sales
within the first thru fifth elements of tot-
sales.
wkly-sales within the second thru third
elements of tot-sales.
field-name
{
}
[
(
expression
[ WHERE logical-expression ] ) ‚
( [ UNIQUE ] field-name [ OVER ALL ]
[ WHERE logical-expression ] ) ‚
OVER ALL
]
OVER over-item

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents