MKTSEGMENTATIONFILTERSELECTION
Stores information pertaining to the selections in a marketing effort's universe and its exclusion filters.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
FILTERTYPECODE |
tinyint |
|
Default = 0 |
The type of marketing effort selection filter. |
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. |
FILTERTYPE |
nvarchar(9) (Computed) |
yes |
CASE [FILTERTYPECODE] WHEN 1 THEN N'Universe' WHEN 2 THEN N'Exclusion' END |
Provides a translation for the 'FILTERTYPECODE' field. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
SEGMENTATIONID |
uniqueidentifier |
|
MKTSEGMENTATION.ID
|
The marketing effort the filter belongs to. |
SELECTIONID |
uniqueidentifier |
yes |
IDSETREGISTER.ID
|
The selection that is used for the filter. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_MKTSEGMENTATIONFILTERSELECTION_DATEADDED |
DATEADDED |
|
|
yes |
IX_MKTSEGMENTATIONFILTERSELECTION_DATECHANGED |
DATECHANGED |
|
|
|
IX_MKTSEGMENTATIONFILTERSELECTION_SELECTIONID |
SELECTIONID |
|
|
|
PK_MKTSEGMENTATIONFILTERSELECTION |
ID |
yes |
yes |
|
UIX_MKTSEGMENTATIONFILTERSELECTION_SEGMENTATIONID_SELECTIONID |
SEGMENTATIONID, SELECTIONID |
yes |
|
|
Triggers