DISCOUNTGROUPDETAIL (4.0SP14)

Stores qualifying and discounted item information.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

DISCOUNTGROUPID

uniqueidentifier

false

The ID of the Discount Group the Detail Information belongs to.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

DISCOUNTEDITEM

bit

false

1

Indicates if the item is discounted, otherwise it is a qualifying item.

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.

DISCOUNTGROUPDETAILAPPLICATIONCODE

tinyint

false

3

The type of discount: 0 - All discountable merchandise

DISCOUNTGROUPDETAILAPPLICATION

nvarchar(28) (Computed)

true

Provides a translation for the 'DISCOUNTGROUPDETAILAPPLICATIONCODE' field.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_DISCOUNTGROUPDETAIL_DATEADDED

DATEADDED

False

False

True

IX_DISCOUNTGROUPDETAIL_DATECHANGED

DATECHANGED

False

False

False

PK_DISCOUNTGROUPDETAIL

ID

True

True

False

Triggers
Trigger Name Description

TR_DISCOUNTGROUPDETAIL_AUDIT_UPDATE

TR_DISCOUNTGROUPDETAIL_AUDIT_DELETE

Referenced by
Referenced by Field

DISCOUNTGROUPDETAILMERCHANDISEDEPARTMENT

ID

DISCOUNTGROUPDETAILMERCHANDISEITEM

ID

DISCOUNTGROUPDETAILPROGRAM

ID