GROUPMEMBERDATERANGE

This table stores the date ranges for which constituents are members of groups.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DATEFROM date yes The date of the member's entry into the group
DATETO date yes The date of the member's exit from the group
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
COMMENTS nvarchar(300) Default = '' The explanation of the group membership or reason for the member's exit from the group

Foreign Keys

Foreign Key Field Type Null Notes Description
GROUPMEMBERID uniqueidentifier GROUPMEMBER.ID The ID of the group member
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_GROUPMEMBERDATERANGE_DATEADDED DATEADDED yes
IX_GROUPMEMBERDATERANGE_DATECHANGED DATECHANGED
IX_GROUPMEMBERDATERANGE_GROUPMEMBERID GROUPMEMBERID
PK_GROUPMEMBERDATERANGE ID yes yes

Triggers

Trigger Name Description
TR_GROUPMEMBERDATERANGE_UPDATE_HOUSEHOLD_UPDATE
TR_GROUPMEMBERDATERANGE_AUDIT_UPDATE
TR_GROUPMEMBERDATERANGE_AUDIT_DELETE