Min_index

aggregation-functions min_index

syntax

  • min_index(a)
  • min_index(a, relation)

definition

description

The min_index function is not defined for string data items.

applies to

  • attribute a with Numeric, Point or boolean value-type
  • relation with value-type of the group CanBeDomainUnit

conditions

The values-unit of the resulting data item should be the domain unit of argument a.

since version

7.184

example

parameter<City> min_index_NrInh                := min_index(City/NrInhabitants); result = 5
attribute<City> min_index_NrInhRegion (Region) := min_index(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

min_index_NrInhRegion
0
3
2
4
null

domain Region, nr of rows = 5

see also