Previous: Stratification Up: Table of Contents Next: Sets Terms    Complex Terms

example9.prg example9.fac

Previous: Complex Terms and List Table of Contents Next: Builtin Aggregates    Sets and Set Terms

example10.prg example10.fac

Previous: Sets Terms Up: Table of Contents Next: Duplicates and Aggregates    Builtin Aggregates

example11.prg example11.fac
example12.prg

Previous: Sets and Aggregates Up: Table of Contents Next: Top-Down Execution    Duplicates in LDL++

The following table summarizes the built aggregates:

Built-in Aggregates in LDL++

Name Semantics SQL Equivalent
sum (sum_all) Compute the sum of items in column including duplicates SUM
sum_dist Compute the sum of items in column excluding duplicates
SUM DISTINCT

avg
(avg_all)

Compute the average of items in column including duplicates AVG
avg_dist Compute the average of items in column excluding duplicates AVG DISTINCT
count
(count_all)
Count the items in column including duplicates COUNT
count_dist Count the items in column excluding duplicates
COUNT DISTINCT
max Find the maximum value in column MAX
min Find the minimum value in column MIN
seq Compute the sum of items in column including duplicates Not Applicable
seq_dist Compute the sum of items in column excluding duplicates Not Applicable


Next Page Top of Page
Carlo Zaniolo, 1997