MKTMATERIAL (4.0SP20)

Stores information pertaining to a marketing material.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SITEID

uniqueidentifier

true

The site to which the material belongs.

MATERIALTYPECODEID

uniqueidentifier

true

The type of the material.

VENDORID

uniqueidentifier

true

The vendor associated with this material.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this material.

CURRENCYEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert from amount to organization amount.

Fields
Field Field Type Null Notes Description

NAME

nvarchar(100)

false

''

A name for the material.

DESCRIPTION

nvarchar(255)

false

''

A description of the material.

COST

money

false

0

The cost associated with the material.

COSTDISTRIBUTIONMETHODCODE

tinyint

false

0

The method to be used to apply the material's base cost to a marketing effort.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

ORGANIZATIONCOST

money

false

0

The amount of the cost in organization currency.

COSTDISTRIBUTIONMETHOD

nvarchar(39) (Computed)

true

Provides a translation for the 'COSTDISTRIBUTIONMETHODCODE' field.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_MKTMATERIAL_BASECURRENCYID

BASECURRENCYID

False

False

False

IX_MKTMATERIAL_CURRENCYEXCHANGERATEID

CURRENCYEXCHANGERATEID

False

False

False

IX_MKTMATERIAL_DATEADDED

DATEADDED

False

False

True

IX_MKTMATERIAL_DATECHANGED

DATECHANGED

False

False

False

IX_MKTMATERIAL_SITEID

SITEID

False

False

False

IX_MKTMATERIAL_VENDORID

VENDORID

False

False

False

PK_MKTMATERIAL

ID

True

True

False

UC_MKTMATERIAL_NAME

NAME

True

False

False

Triggers
Trigger Name Description

TR_MKTMATERIAL_IU_ORGANIZATIONCOST

TR_MKTMATERIAL_AUDIT_UPDATE

TR_MKTMATERIAL_AUDIT_DELETE

Referenced by
Referenced by Field

MKTPACKAGEMATERIAL

MATERIALID