Difference between revisions of "Sales.SpecialOffer (table)"

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| Sales.SpecialOffer
 
| Sales.SpecialOffer
 +
|- valign="top"
 +
| '''Description
 +
| Sale discounts lookup table.
 
|-
 
|-
 
|}
 
|}
Line 15: Line 18:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description / PK / Index
| '''Index
 
 
 
|-
+
|- valign="top"
 
| SpecialOfferID
 
| SpecialOfferID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| PK_SpecialOffer_SpecialOfferID
+
| Primary key for SpecialOffer records.<br />PK_SpecialOffer_SpecialOfferID
|
+
|- valign="top"
|-
 
 
| Description
 
| Description
 
| nvarchar(255)
 
| nvarchar(255)
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Discount description.<br />
|
+
|- valign="top"
|-
 
 
| DiscountPct
 
| DiscountPct
 
| smallmoney
 
| smallmoney
 
| not null
 
| not null
 
| ((0.00))
 
| ((0.00))
|  
+
| Discount precentage.<br />
|
+
|- valign="top"
|-
 
 
| Type
 
| Type
 
| nvarchar(50)
 
| nvarchar(50)
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Discount type category.<br />
|
+
|- valign="top"
|-
 
 
| Category
 
| Category
 
| nvarchar(50)
 
| nvarchar(50)
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Group the discount applies to such as Reseller or Customer.<br />
|
+
|- valign="top"
|-
 
 
| StartDate
 
| StartDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Discount start date.<br />
|
+
|- valign="top"
|-
 
 
| EndDate
 
| EndDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Discount end date.<br />
|
+
|- valign="top"
|-
 
 
| MinQty
 
| MinQty
 
| int
 
| int
 
| not null
 
| not null
 
| ((0))
 
| ((0))
|  
+
| Minimum discount percent allowed.<br />
|
+
|- valign="top"
|-
 
 
| MaxQty
 
| MaxQty
 
| int
 
| int
 
| null
 
| null
 
|  
 
|  
|  
+
| Maximum discount percent allowed.<br />
|
+
|- 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.<br />AK_SpecialOffer_rowguid
| AK_SpecialOffer_rowguid
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
|  
+
| Date and time the record was last updated.<br />
|
 
 
|}
 
|}
  
Line 110: Line 101:
 
| SpecialOfferID
 
| SpecialOfferID
 
|}
 
|}
 +
 +
 +
 
== automatically generated ==
 
== automatically generated ==
  

Revision as of 23:55, 28 December 2009

wikibot

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


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


Dependency Type Object Type Referenced Object
Schema Schema Sales