Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 SEQUENCE int   Default = 0 The sequence of the segment within 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) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 SEGMENTID uniqueidentifier   MKTSEGMENT.ID The ID of the segment.
 SEGMENTGROUPID uniqueidentifier   MKTSEGMENTGROUP.ID The ID of the group to which the segment belongs.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_MKTGROUPSEGMENTS_DATEADDED DATEADDED    
 IX_MKTGROUPSEGMENTS_DATECHANGED DATECHANGED      
 IX_MKTGROUPSEGMENTS_SEGMENTGROUPID SEGMENTGROUPID      
 PK_MKTGROUPSEGMENTS ID  
 UIX_MKTGROUPSEGMENTS_SEGMENTID_SEGMENTGROUPID SEGMENTID, SEGMENTGROUPID    

Trigger Name Description
 TR_MKTGROUPSEGMENTS_AUDIT_UPDATE
 TR_MKTGROUPSEGMENTS_AUDIT_DELETE

Entity-Relationship diagram of this table