Difference between revisions of "Sales.SpecialOffer (table)"
Line 116: | Line 116: | ||
| '''Table | | '''Table | ||
| Sales.SpecialOffer | | Sales.SpecialOffer | ||
− | |- | + | |- valign="top" |
| '''Description | | '''Description | ||
Line 138: | Line 138: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for SpecialOffer records.PK_SpecialOffer_SpecialOfferID | + | | Primary key for SpecialOffer records.<br />PK_SpecialOffer_SpecialOfferID |
|- valign="top" | |- valign="top" | ||
| Description | | Description | ||
Line 144: | Line 144: | ||
| not null | | not null | ||
| | | | ||
− | | Discount description. | + | | Discount description.<br /> |
|- valign="top" | |- valign="top" | ||
| DiscountPct | | DiscountPct | ||
Line 150: | Line 150: | ||
| not null | | not null | ||
| (0.00) | | (0.00) | ||
− | | Discount precentage. | + | | Discount precentage.<br /> |
|- valign="top" | |- valign="top" | ||
| Type | | Type | ||
Line 156: | Line 156: | ||
| not null | | not null | ||
| | | | ||
− | | Discount type category. | + | | Discount type category.<br /> |
|- valign="top" | |- valign="top" | ||
| Category | | Category | ||
Line 162: | Line 162: | ||
| not null | | not null | ||
| | | | ||
− | | Group the discount applies to such as Reseller or Customer. | + | | Group the discount applies to such as Reseller or Customer.<br /> |
|- valign="top" | |- valign="top" | ||
| StartDate | | StartDate | ||
Line 168: | Line 168: | ||
| not null | | not null | ||
| | | | ||
− | | Discount start date. | + | | Discount start date.<br /> |
|- valign="top" | |- valign="top" | ||
| EndDate | | EndDate | ||
Line 174: | Line 174: | ||
| not null | | not null | ||
| | | | ||
− | | Discount end date. | + | | Discount end date.<br /> |
|- valign="top" | |- valign="top" | ||
| MinQty | | MinQty | ||
Line 180: | Line 180: | ||
| not null | | not null | ||
| (0) | | (0) | ||
− | | Minimum discount percent allowed. | + | | Minimum discount percent allowed.<br /> |
|- valign="top" | |- valign="top" | ||
| MaxQty | | MaxQty | ||
Line 186: | Line 186: | ||
| null | | null | ||
| | | | ||
− | | Maximum discount percent allowed. | + | | Maximum discount percent allowed.<br /> |
|- valign="top" | |- valign="top" | ||
| rowguid | | rowguid | ||
Line 192: | Line 192: | ||
| not null | | not null | ||
| (NEWID()) | | (NEWID()) | ||
− | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.AK_SpecialOffer_rowguid | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_SpecialOffer_rowguid |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 198: | Line 198: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated.<br /> |
|} | |} | ||
Revision as of 00:11, 27 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 |