Editing Sales.SpecialOffer (table)
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- |
| '''Table | | '''Table | ||
| Sales.SpecialOffer | | Sales.SpecialOffer | ||
− | |- | + | |- |
− | |||
− | |||
|} | |} | ||
− | + | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 17: | Line 15: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''PK |
− | + | | '''Index | |
− | |- | + | |
+ | |- | ||
| SpecialOfferID | | SpecialOfferID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | PK_SpecialOffer_SpecialOfferID |
− | |- | + | | |
+ | |- | ||
| Description | | Description | ||
| nvarchar(255) | | nvarchar(255) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| DiscountPct | | DiscountPct | ||
| smallmoney | | smallmoney | ||
| not null | | not null | ||
| ((0.00)) | | ((0.00)) | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| Type | | Type | ||
| nvarchar(50) | | nvarchar(50) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| Category | | Category | ||
| nvarchar(50) | | nvarchar(50) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| StartDate | | StartDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| EndDate | | EndDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| MinQty | | MinQty | ||
| int | | int | ||
| not null | | not null | ||
| ((0)) | | ((0)) | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| MaxQty | | MaxQty | ||
| int | | int | ||
| null | | null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| rowguid | | rowguid | ||
| uniqueidentifier | | uniqueidentifier | ||
| not null | | not null | ||
| (newid()) | | (newid()) | ||
− | | | + | | |
− | |- | + | | AK_SpecialOffer_rowguid |
+ | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | |
− | | | + | | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 141: | Line 104: | ||
| '''Column | | '''Column | ||
| '''Referencing Column | | '''Referencing Column | ||
− | + | ||
− | |- | + | |- |
| [[Sales.SpecialOfferProduct_(table)|Sales.SpecialOfferProduct]] | | [[Sales.SpecialOfferProduct_(table)|Sales.SpecialOfferProduct]] | ||
| SpecialOfferID | | SpecialOfferID | ||
| SpecialOfferID | | SpecialOfferID | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== automatically generated == | == automatically generated == | ||
Line 169: | Line 117: | ||
| '''Table | | '''Table | ||
| Sales.SpecialOffer | | Sales.SpecialOffer | ||
− | |- | + | |- |
+ | |||
| '''Description | | '''Description | ||
| Sale discounts lookup table. | | Sale discounts lookup table. | ||
|- | |- | ||
+ | |||
|} | |} | ||
Line 182: | Line 132: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description |
+ | | '''PK / Index | ||
− | |- | + | |- |
| SpecialOfferID | | SpecialOfferID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for SpecialOffer records. | + | | Primary key for SpecialOffer records. |
− | |- | + | | PK_SpecialOffer_SpecialOfferID |
+ | |- | ||
| Description | | Description | ||
| nvarchar(255) | | nvarchar(255) | ||
| not null | | not null | ||
| | | | ||
− | | Discount description. | + | | Discount description. |
− | |- | + | | |
+ | |- | ||
| DiscountPct | | DiscountPct | ||
| smallmoney | | smallmoney | ||
| not null | | not null | ||
| (0.00) | | (0.00) | ||
− | | Discount precentage. | + | | Discount precentage. |
− | |- | + | | |
+ | |- | ||
| Type | | Type | ||
| nvarchar(50) | | nvarchar(50) | ||
| not null | | not null | ||
| | | | ||
− | | Discount type category. | + | | Discount type category. |
− | |- | + | | |
+ | |- | ||
| Category | | Category | ||
| nvarchar(50) | | nvarchar(50) | ||
| not null | | not null | ||
| | | | ||
− | | Group the discount applies to such as Reseller or Customer. | + | | Group the discount applies to such as Reseller or Customer. |
− | |- | + | | |
+ | |- | ||
| StartDate | | StartDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| | | | ||
− | | Discount start date. | + | | Discount start date. |
− | |- | + | | |
+ | |- | ||
| EndDate | | EndDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| | | | ||
− | | Discount end date. | + | | Discount end date. |
− | |- | + | | |
+ | |- | ||
| MinQty | | MinQty | ||
| int | | int | ||
| not null | | not null | ||
| (0) | | (0) | ||
− | | Minimum discount percent allowed. | + | | Minimum discount percent allowed. |
− | |- | + | | |
+ | |- | ||
| MaxQty | | MaxQty | ||
| int | | int | ||
| null | | null | ||
| | | | ||
− | | Maximum discount percent allowed. | + | | Maximum discount percent allowed. |
− | |- | + | | |
+ | |- | ||
| 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 |
+ | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
+ | | | ||
|} | |} | ||
Line 264: | Line 226: | ||
| SpecialOfferID | | SpecialOfferID | ||
| SpecialOfferID | | SpecialOfferID | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |