Skip to content
cicada edited this page Dec 7, 2022 · 9 revisions

title: Count permalink: /Count/

Aggregation functions count

syntax

  • count(a)
  • count(a, relation)

definition

applies to

conditions

The domain of arguments a and relation must match.

since version

5.15

example

parameter countNrInh                := count(City/NrInhabitants); result = 6 attribute countNrInhRegion (Region) := count(City/NrInhabitants, City/Region_rel);

City/NrInhabitants City/Region_rel
550 0
525 1
300 2
500 1
200 3
175 null
null 3

domain City, nr of rows = 7

countNrInhRegion
1
2
1
1
0

domain Region, nr of rows = 5

see also

Clone this wiki locally