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

From dbscript Online Help
Jump to: navigation, search
Line 12: Line 12:
  
  
 +
=== Columns ===
 
{| 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 18: Line 19:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description / PK / Index
+
| '''Description
 
 
 
|- valign="top"
 
|- valign="top"
Line 25: Line 26:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for SalesReason records.<br />PK_SalesReason_SalesReasonID
+
| Primary key for SalesReason records.
 
|- valign="top"
 
|- valign="top"
 
| Name
 
| Name
Line 31: Line 32:
 
| not null
 
| not null
 
|  
 
|  
| Sales reason description.<br />
+
| Sales reason description.
 
|- valign="top"
 
|- valign="top"
 
| ReasonType
 
| ReasonType
Line 37: Line 38:
 
| not null
 
| not null
 
|  
 
|  
| Category the sales reason belongs to.<br />
+
| Category the sales reason belongs to.
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 43: Line 44:
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
| Date and time the record was last updated.<br />
+
| Date and time the record was last updated.
 
|}
 
|}
  
 +
=== Primary Key ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Primary Key
 +
| '''Columns
 +
|-
 +
| PK_SalesReason_SalesReasonID
 +
| SalesReasonID
 +
|}
  
 
+
=== Detail Tables ===
 
{| 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 60: Line 70:
 
|}
 
|}
  
 
+
=== References ===
 
{| 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 71: Line 81:
 
| Type
 
| Type
 
| [[dbo.Name_(type)|dbo.Name]]
 
| [[dbo.Name_(type)|dbo.Name]]
 +
 +
|-
 +
| Schema
 +
| Schema
 +
| [[Sales_(schema)|Sales]]
  
 
|}
 
|}
 +
 +
 
== wikivalues ==
 
== wikivalues ==
  

Revision as of 00:06, 3 February 2010

wikibot

Table Sales.SalesReason
Description Lookup table of customer purchase reasons.


Columns

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

Primary Key Columns
PK_SalesReason_SalesReasonID SalesReasonID

Detail Tables

Detail Table Column Referencing Column
Sales.SalesOrderHeaderSalesReason SalesReasonID SalesReasonID

References

Dependency Type Object Type Referenced Object
Data Type Type dbo.Name
Schema Schema Sales


wikivalues

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

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.


Detail Table Column Referencing Column
Sales.SalesOrderHeaderSalesReason SalesReasonID SalesReasonID


Dependency Type Object Type Referenced Object
Data Type Type dbo.Name
Schema Schema Sales