Name

supergroup — compute a group's supergroup as of a given date

Synopsis

NUMERIC(5,3) supergroup ( grp,  
  date);  
NUMERIC(5,3) grp ;
DATE date ;
 

Input

grp

A GROUPS.Gid

date

A date.

Description

A function which returns the supergroup of a group on a given date. The GROUPS.Permanent value indicates when a group becomes permanent. Before that date a group may exist only intermittently during group fission -- as a sub-group of a larger group, the supergroup. Given a group and a date, the supergroup() function returns the ancestor group that is a real group, not a fission sub-group, on the given date.

Tip

The supergroup() function may be used to write queries that span periods of group fission and produce consistent results despite individual's having been censused in the fission sub-groups during the fission period.

The supergroup() function returns NULL if asked to find the supergroup of a group that has a NULL GROUPS.From_group on a date that's before the group's Permanent date.


Page generated: 2016-07-22T23:08:45-04:00.