ORGANIZATIONMERGERHISTORY (4.0SP17)

History of organization mergers.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SOURCEORG1ID

uniqueidentifier

false

ID of the primary organization in the merger.

SOURCEORG2ID

uniqueidentifier

true

ID of the secondary organization in the merger.

NEWORGID

uniqueidentifier

false

ID of new organization that was created in the merger or ID of the primary organization into which the secondary was merged.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

MERGERDATE

date

false

Date of the organization merger.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_ORGANIZATIONMERGERHISTORY_DATEADDED

DATEADDED

False

False

True

IX_ORGANIZATIONMERGERHISTORY_DATECHANGED

DATECHANGED

False

False

False

IX_ORGANIZATIONMERGERHISTORY_NEWORGID

NEWORGID

False

False

False

IX_ORGANIZATIONMERGERHISTORY_SOURCEORG1ID

SOURCEORG1ID

False

False

False

IX_ORGANIZATIONMERGERHISTORY_SOURCEORG2ID

SOURCEORG2ID

False

False

False

PK_ORGANIZATIONMERGERHISTORY

ID

True

True

False

Triggers
Trigger Name Description

TR_ORGANIZATIONMERGERHISTORY_AUDIT_UPDATE

TR_ORGANIZATIONMERGERHISTORY_AUDIT_DELETE