MKTSEGMENTATIONTESTSEGMENT
Stores information pertaining to a marketing effort test segment.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| NAME |
nvarchar(100) |
|
Default = '' |
A name for the test segment. |
| DESCRIPTION |
nvarchar(255) |
|
Default = '' |
A description about the test segment. |
| CODE |
nvarchar(10) |
|
Default = '' |
A unique code that identifies the test segment. |
| RESPONSERATE |
decimal(5, 2) |
|
Default = 0 |
The expected response rate for the test segment. |
| GIFTAMOUNT |
money |
|
Default = 0 |
The average expected gift amount per donor for the test segment. |
| SAMPLESIZE |
int |
|
Default = 100 |
The percent or number of records to use for the test segment. |
| SAMPLESIZETYPECODE |
tinyint |
|
Default = 0 |
The sample size type. |
| SAMPLESIZEMETHODCODE |
tinyint |
|
Default = 0 |
The method to use when retrieving the sample of records. |
| SEQUENCE |
int |
|
Default = 0 |
The order of test segments in the segment. |
| 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. |
| SAMPLESIZEMETHOD |
nvarchar(6) (Computed) |
yes |
CASE [SAMPLESIZEMETHODCODE] WHEN 0 THEN N'nth' WHEN 1 THEN N'Random' END |
Provides a translation for the 'SAMPLESIZEMETHODCODE' field. |
| PREFIXCODE |
tinyint |
|
Default = 0 |
Prefix type for the test segment name. |
| PREFIX |
nvarchar(12) (Computed) |
yes |
CASE [PREFIXCODE] WHEN 0 THEN N'' WHEN 1 THEN N'Segment name' WHEN 2 THEN N'Segment code' END |
Provides a translation for the 'PREFIXCODE' field. |
| TESTSEGMENTCODE |
nvarchar(10) |
|
Default = '' |
A code that identifies the type of test segment. |
| SAMPLESIZETYPE |
nvarchar(8) (Computed) |
yes |
CASE [SAMPLESIZETYPECODE] WHEN 0 THEN N'Percent' WHEN 1 THEN N'Records' WHEN 2 THEN N'Fraction' END |
Provides a translation for the 'SAMPLESIZETYPECODE' field. |
| FRACTION |
nvarchar(10) |
|
Default = '' |
Sample size represented as a fraction |
| OVERRIDEBUSINESSUNITS |
bit |
|
Default = 0 |
Determines whether the business units on the effort are being overridden by the segment. |
| ORGANIZATIONGIFTAMOUNT |
money |
|
Default = 0 |
The amount of the gift in organization currency. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| SEGMENTID |
uniqueidentifier |
|
MKTSEGMENTATIONSEGMENT.ID
|
The segment the test segment belongs to. |
| PACKAGEID |
uniqueidentifier |
|
MKTPACKAGE.ID
|
The package associated with the test segment. |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| ASKLADDERID |
uniqueidentifier |
yes |
MKTASKLADDER.ID
|
The ask ladder associated with this segment. |
| PARTDEFINITIONVALUESID |
uniqueidentifier |
yes |
MKTSOURCECODEPARTDEFINITIONVALUES.ID
|
FK to MKTSOURCECODEPARTDEFINITIONVALUES |
| TESTPARTDEFINITIONVALUESID |
uniqueidentifier |
yes |
MKTSOURCECODEPARTDEFINITIONVALUES.ID
|
FK to MKTSOURCECODEPARTDEFINITIONVALUES |
| BASECURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The base currency associated with this segmentation segment. |
| ORGANIZATIONCURRENCYEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert from the gift amount to organization gift amount. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_MKTSEGMENTATIONTESTSEGMENT_ASKLADDERID |
ASKLADDERID |
|
|
|
| IX_MKTSEGMENTATIONTESTSEGMENT_BASECURRENCYID |
BASECURRENCYID |
|
|
|
| IX_MKTSEGMENTATIONTESTSEGMENT_DATEADDED |
DATEADDED |
|
|
yes |
| IX_MKTSEGMENTATIONTESTSEGMENT_DATECHANGED |
DATECHANGED |
|
|
|
| IX_MKTSEGMENTATIONTESTSEGMENT_ORGANIZATIONCURRENCYEXCHANGERATEID |
ORGANIZATIONCURRENCYEXCHANGERATEID |
|
|
|
| IX_MKTSEGMENTATIONTESTSEGMENT_PACKAGEID |
PACKAGEID |
|
|
|
| IX_MKTSEGMENTATIONTESTSEGMENT_PARTDEFINITIONVALUESID |
PARTDEFINITIONVALUESID |
|
|
|
| IX_MKTSEGMENTATIONTESTSEGMENT_TESTPARTDEFINITIONVALUESID |
TESTPARTDEFINITIONVALUESID |
|
|
|
| PK_MKTSEGMENTATIONTESTSEGMENT |
ID |
yes |
yes |
|
| UIX_MKTSEGMENTATIONTESTSEGMENT_SEGMENTID_NAME_PREFIXCODE |
SEGMENTID, NAME, PREFIXCODE |
yes |
|
|
Triggers
Referenced by