Difference between revisions of "Sales.SpecialOffer (table)"
(New page: == wikibot == {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- | '''Table | Sales.SpecialOffer |- |} {| border="1" cellpadding="5" cellspacing="0" style...) |
|||
| Line 94: | Line 94: | ||
| (getdate()) | | (getdate()) | ||
| | | | ||
| + | | | ||
| + | |} | ||
| + | |||
| + | |||
| + | |||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Detail Table | ||
| + | | '''Column | ||
| + | | '''Referencing Column | ||
| + | |||
| + | |- | ||
| + | | [[Sales.SpecialOfferProduct_(table)|Sales.SpecialOfferProduct]] | ||
| + | | SpecialOfferID | ||
| + | | SpecialOfferID | ||
| + | |} | ||
| + | |||
| + | == automatically generated == | ||
| + | |||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- | ||
| + | | '''Table | ||
| + | | Sales.SpecialOffer | ||
| + | |- | ||
| + | |||
| + | | '''Description | ||
| + | | Sale discounts lookup table. | ||
| + | |- | ||
| + | |||
| + | |} | ||
| + | |||
| + | |||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Column | ||
| + | | '''Data Type | ||
| + | | '''Nullable | ||
| + | | '''Default | ||
| + | | '''Description | ||
| + | | '''PK / Index | ||
| + | |||
| + | |- | ||
| + | | SpecialOfferID | ||
| + | | int | ||
| + | | not null | ||
| + | | | ||
| + | | Primary key for SpecialOffer records. | ||
| + | | PK_SpecialOffer_SpecialOfferID | ||
| + | |- | ||
| + | | Description | ||
| + | | nvarchar(255) | ||
| + | | not null | ||
| + | | | ||
| + | | Discount description. | ||
| + | | | ||
| + | |- | ||
| + | | DiscountPct | ||
| + | | smallmoney | ||
| + | | not null | ||
| + | | (0.00) | ||
| + | | Discount precentage. | ||
| + | | | ||
| + | |- | ||
| + | | Type | ||
| + | | nvarchar(50) | ||
| + | | not null | ||
| + | | | ||
| + | | Discount type category. | ||
| + | | | ||
| + | |- | ||
| + | | Category | ||
| + | | nvarchar(50) | ||
| + | | not null | ||
| + | | | ||
| + | | Group the discount applies to such as Reseller or Customer. | ||
| + | | | ||
| + | |- | ||
| + | | StartDate | ||
| + | | datetime | ||
| + | | not null | ||
| + | | | ||
| + | | Discount start date. | ||
| + | | | ||
| + | |- | ||
| + | | EndDate | ||
| + | | datetime | ||
| + | | not null | ||
| + | | | ||
| + | | Discount end date. | ||
| + | | | ||
| + | |- | ||
| + | | MinQty | ||
| + | | int | ||
| + | | not null | ||
| + | | (0) | ||
| + | | Minimum discount percent allowed. | ||
| + | | | ||
| + | |- | ||
| + | | MaxQty | ||
| + | | int | ||
| + | | null | ||
| + | | | ||
| + | | Maximum discount percent allowed. | ||
| + | | | ||
| + | |- | ||
| + | | rowguid | ||
| + | | uniqueidentifier | ||
| + | | not null | ||
| + | | (NEWID()) | ||
| + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | ||
| + | | AK_SpecialOffer_rowguid | ||
| + | |- | ||
| + | | ModifiedDate | ||
| + | | datetime | ||
| + | | not null | ||
| + | | (GETDATE()) | ||
| + | | Date and time the record was last updated. | ||
| | | | ||
|} | |} | ||
Revision as of 23:27, 26 November 2009
wikibot
| Table | Sales.SpecialOffer |
| Column | Data Type | Nullable | Default | PK | Index |
| SpecialOfferID | int | not null | PK_SpecialOffer_SpecialOfferID | ||
| Description | nvarchar(255) | not null | |||
| DiscountPct | smallmoney | not null | ((0.00)) | ||
| Type | nvarchar(50) | not null | |||
| Category | nvarchar(50) | not null | |||
| StartDate | datetime | not null | |||
| EndDate | datetime | not null | |||
| MinQty | int | not null | ((0)) | ||
| MaxQty | int | null | |||
| rowguid | uniqueidentifier | not null | (newid()) | AK_SpecialOffer_rowguid | |
| ModifiedDate | datetime | not null | (getdate()) |
| Detail Table | Column | Referencing Column |
| Sales.SpecialOfferProduct | SpecialOfferID | SpecialOfferID |
automatically generated
| Table | Sales.SpecialOffer |
| Description | Sale discounts lookup table. |
| Column | Data Type | Nullable | Default | Description | PK / Index |
| SpecialOfferID | int | not null | Primary key for SpecialOffer records. | PK_SpecialOffer_SpecialOfferID | |
| Description | nvarchar(255) | not null | Discount description. | ||
| DiscountPct | smallmoney | not null | (0.00) | Discount precentage. | |
| Type | nvarchar(50) | not null | Discount type category. | ||
| Category | nvarchar(50) | not null | Group the discount applies to such as Reseller or Customer. | ||
| StartDate | datetime | not null | Discount start date. | ||
| EndDate | datetime | not null | Discount end date. | ||
| MinQty | int | not null | (0) | Minimum discount percent allowed. | |
| MaxQty | int | null | Maximum discount percent allowed. | ||
| rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | AK_SpecialOffer_rowguid |
| ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
| Detail Table | Column | Referencing Column |
| Sales.SpecialOfferProduct | SpecialOfferID | SpecialOfferID |