Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(300)   Default = '' The name of the merge.
 MERGETYPECODE tinyint   Default = 0 The merge operation for this merge.
 MERGETYPE nvarchar(14) (Computed) CASE [MERGETYPECODE] WHEN 0 THEN N'Union' WHEN 1 THEN N'Intersection' WHEN 2 THEN N'Only in first' WHEN 3 THEN N'Only in second' WHEN 4 THEN N'Exclusive or' END Provides a translation for the 'MERGETYPECODE' field.
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 IDSETREGISTERID uniqueidentifier IDSETREGISTER.ID The selection ID that is the output of this merge.
 SELECTION1ID uniqueidentifier   IDSETREGISTER.ID The selection ID of the first selection for this merge.
 SELECTION2ID uniqueidentifier   IDSETREGISTER.ID The selection ID of the second selection for this merge.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_IDSETREGISTERMERGE_DATEADDED DATEADDED    
 IX_IDSETREGISTERMERGE_DATECHANGED DATECHANGED      
 PK_IDSETREGISTERMERGE ID  
 UC_IDSETREGISTERMERGE_NAME NAME    

Trigger Name Description
 TR_IDSETREGISTERMERGE_AUDIT_UPDATE
 TR_IDSETREGISTERMERGE_AUDIT_DELETE

Entity-Relationship diagram of this table