MKTGROUPSEGMENTS
Stores information pertaining to a segment/group relationship.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
Foreign Keys
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. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_MKTGROUPSEGMENTS_DATEADDED |
DATEADDED |
|
|
yes |
IX_MKTGROUPSEGMENTS_DATECHANGED |
DATECHANGED |
|
|
|
IX_MKTGROUPSEGMENTS_SEGMENTGROUPID |
SEGMENTGROUPID |
|
|
|
PK_MKTGROUPSEGMENTS |
ID |
yes |
yes |
|
UIX_MKTGROUPSEGMENTS_SEGMENTID_SEGMENTGROUPID |
SEGMENTID, SEGMENTGROUPID |
yes |
|
|
Triggers