Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(100)   Default = '' A name for the group of segments.
 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.
 SEGMENTFAMILYTYPECODE tinyint (Computed) dbo.[UFN_MKTSEGMENTGROUP_GETSEGMENTFAMILYTYPECODE]([ID]) The type of segment, direct or public media, that can belong to this group.

Foreign Key Field Type Null Notes Description
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 BASECURRENCYID uniqueidentifier CURRENCY.ID The base currency associated with this group.
 SITEID uniqueidentifier SITE.ID

Index Name Field(s) Unique Primary Clustered
 IX_MKTSEGMENTGROUP_BASECURRENCYID BASECURRENCYID      
 IX_MKTSEGMENTGROUP_DATEADDED DATEADDED    
 IX_MKTSEGMENTGROUP_DATECHANGED DATECHANGED      
 PK_MKTSEGMENTGROUP ID  
 UC_MKTSEGMENTGROUP_NAME NAME    

Trigger Name Description
 TR_MKTSEGMENTGROUP_IU_BASECURRENCYID
 TR_MKTSEGMENTGROUP_AUDIT_UPDATE
 TR_MKTSEGMENTGROUP_AUDIT_DELETE

Referenced by Field
 MKTGROUPSEGMENTS SEGMENTGROUPID
 MKTSEGMENTGROUPREFRESHPROCESS SEGMENTGROUPID

Entity-Relationship diagram of this table