Skip to content

Select_data

mtbeek32 edited this page Jan 2, 2023 · 15 revisions

Relational functions select_data

syntax

definition

The select_data(domain unit, condition, data item) function results relates the attribute argument to the domain unit argument, based on the condition argument.

The select_data is usually used together with the select unit function. This select unit is used to make the domain unit.

applies to

since version

7.305

example

unit ZHCities := select_unit(City/RegionCode == 200) {     attribute  name := select_data(., City/RegionCode == 200, City/Name); }

City/RegionCode City/Name
100 Amsterdam
200 Rotterdam
300 Utrecht
200 Den Haag
400 Eindhoven
null Haarlem
400 Tilburg

domain City, nr of rows = 7

ZHCities/name
Rotterdam
Den Haag

domainZHCities, nr of rows = 2

see also

Clone this wiki locally