Difference between revisions of "Sales.SpecialOffer (table)"
Line 110: | Line 110: | ||
| SpecialOfferID | | SpecialOfferID | ||
|} | |} | ||
− | |||
== automatically generated == | == automatically generated == | ||
Line 132: | Line 131: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| SpecialOfferID | | SpecialOfferID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for SpecialOffer records. | + | | Primary key for SpecialOffer records.PK_SpecialOffer_SpecialOfferID |
− | + | |- valign="top" | |
− | |- | ||
| Description | | Description | ||
| nvarchar(255) | | nvarchar(255) | ||
Line 148: | Line 145: | ||
| | | | ||
| Discount description. | | Discount description. | ||
− | + | |- valign="top" | |
− | |- | ||
| DiscountPct | | DiscountPct | ||
| smallmoney | | smallmoney | ||
Line 155: | Line 151: | ||
| (0.00) | | (0.00) | ||
| Discount precentage. | | Discount precentage. | ||
− | + | |- valign="top" | |
− | |- | ||
| Type | | Type | ||
| nvarchar(50) | | nvarchar(50) | ||
Line 162: | Line 157: | ||
| | | | ||
| Discount type category. | | Discount type category. | ||
− | + | |- valign="top" | |
− | |- | ||
| Category | | Category | ||
| nvarchar(50) | | nvarchar(50) | ||
Line 169: | Line 163: | ||
| | | | ||
| Group the discount applies to such as Reseller or Customer. | | Group the discount applies to such as Reseller or Customer. | ||
− | + | |- valign="top" | |
− | |- | ||
| StartDate | | StartDate | ||
| datetime | | datetime | ||
Line 176: | Line 169: | ||
| | | | ||
| Discount start date. | | Discount start date. | ||
− | + | |- valign="top" | |
− | |- | ||
| EndDate | | EndDate | ||
| datetime | | datetime | ||
Line 183: | Line 175: | ||
| | | | ||
| Discount end date. | | Discount end date. | ||
− | + | |- valign="top" | |
− | |- | ||
| MinQty | | MinQty | ||
| int | | int | ||
Line 190: | Line 181: | ||
| (0) | | (0) | ||
| Minimum discount percent allowed. | | Minimum discount percent allowed. | ||
− | + | |- valign="top" | |
− | |- | ||
| MaxQty | | MaxQty | ||
| int | | int | ||
Line 197: | Line 187: | ||
| | | | ||
| Maximum discount percent allowed. | | Maximum discount percent allowed. | ||
− | + | |- valign="top" | |
− | |- | ||
| rowguid | | rowguid | ||
| uniqueidentifier | | uniqueidentifier | ||
| not null | | not null | ||
| (NEWID()) | | (NEWID()) | ||
− | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.AK_SpecialOffer_rowguid |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
Line 211: | Line 199: | ||
| (GETDATE()) | | (GETDATE()) | ||
| Date and time the record was last updated. | | Date and time the record was last updated. | ||
− | |||
|} | |} | ||
Revision as of 23:58, 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 |