Invert - ObjectVision/GeoDMS GitHub Wiki
Relational functions invert
- invert(relation)
invert(a) inverts the relation argument.
Inverting means the resulting attribute has as domain unit the values unit and as values unit the domain unit of the relation argument.
- attribute relation with value type of the group CanBeDomainUnit
attribute<Region> invertRegion_rel (Region) := invert(City/Region_rel);
City/Region_rel |
---|
0 |
1 |
2 |
1 |
3 |
null |
3 |
domain City, nr of rows = 7
InvertRegion_rel |
---|
1 |
4 |
3 |
7 |
null |
domain Region, nr of rows = 5