logo-header

 
 

 syntax

  • pcount(a)

definition

pcount(a) is defined as the count of a data item a over it's own relation a, so pcount(a) is a synonym for count(a, a).

applies to

Attribute with uint2, uint4, uint8, uint16, uint32, spoint, ipoint or bool value type

since version

5.15

example

attribute<uint32> pcountReg (Region) := pcount(City/Region_rel);
City/Region_rel
0
1
2
1
3
null
3
domain City, nr of rows = 7

pcountReg
1
2
1
2
0
domain Region, nr of rows = 5

see also


OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904