From dbscript Online Help
|
|
| Line 86: |
Line 86: |
| | | | |
| | |} | | |} |
| | + | |
| | + | |
| | == wikivalues == | | == wikivalues == |
| | | | |
Latest revision as of 09:56, 27 August 2011
wikibot[edit]
| Table
|
Sales.SalesReason
|
| Description
|
Lookup table of customer purchase reasons.
|
Columns[edit]
| Column
|
Data Type
|
Nullable
|
Default
|
Description
|
| SalesReasonID
|
int
|
not null
|
|
Primary key for SalesReason records.
|
| Name
|
dbo.Name
|
not null
|
|
Sales reason description.
|
| ReasonType
|
dbo.Name
|
not null
|
|
Category the sales reason belongs to.
|
| ModifiedDate
|
datetime
|
not null
|
(getdate())
|
Date and time the record was last updated.
|
Primary Key[edit]
| Primary Key
|
Columns
|
| PK_SalesReason_SalesReasonID
|
SalesReasonID
|
Detail Tables[edit]
References[edit]
| Dependency Type
|
Object Type
|
Referenced Object
|
| Data Type
|
Type
|
dbo.Name
|
| Schema
|
Schema
|
Sales
|
wikivalues[edit]
| Table Values
|
Sales.SalesReason
|
| SalesReasonID
|
Name
|
ReasonType
|
| 1
|
Price
|
Other
|
| 2
|
On Promotion
|
Promotion
|
| 3
|
Magazine Advertisement
|
Marketing
|
| 4
|
Television Advertisement
|
Marketing
|
| 5
|
Manufacturer
|
Other
|
| 6
|
Review
|
Other
|
| 7
|
Demo Event
|
Marketing
|
| 8
|
Sponsorship
|
Marketing
|
| 9
|
Quality
|
Other
|
| 10
|
Other
|
Other
|
automatically generated[edit]
| Table
|
Sales.SalesReason
|
| Description
|
Lookup table of customer purchase reasons.
|
| Column
|
Data Type
|
Nullable
|
Default
|
Description / PK / Index
|
| SalesReasonID
|
int
|
not null
|
|
Primary key for SalesReason records. PK_SalesReason_SalesReasonID
|
| Name
|
Name
|
not null
|
|
Sales reason description.
|
| ReasonType
|
Name
|
not null
|
|
Category the sales reason belongs to.
|
| ModifiedDate
|
datetime
|
not null
|
(GETDATE())
|
Date and time the record was last updated.
|
| Dependency Type
|
Object Type
|
Referenced Object
|
| Data Type
|
Type
|
dbo.Name
|
| Schema
|
Schema
|
Sales
|