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

From dbscript Online Help
Jump to: navigation, search
(New page: == wikibot == {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- | '''Table | Sales.SalesOrderHeaderSalesReason |- |} {| border="1" cellpadding="5" cellsp...)
 
Line 38: Line 38:
 
| (getdate())
 
| (getdate())
 
|  
 
|  
 +
|
 +
|}
 +
 +
 +
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Relation
 +
| '''Column
 +
| '''Referenced Column
 +
 +
|-
 +
| [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]]
 +
| SalesOrderID
 +
| SalesOrderID
 +
|-
 +
| [[Sales.SalesReason_(table)|Sales.SalesReason]]
 +
| SalesReasonID
 +
| SalesReasonID
 +
|}
 +
 +
== automatically generated ==
 +
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|-
 +
| '''Table
 +
| Sales.SalesOrderHeaderSalesReason
 +
|-
 +
 +
| '''Description
 +
| Cross-reference table mapping sales orders to sales reason codes.
 +
|-
 +
 +
|}
 +
 +
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Column
 +
| '''Data Type
 +
| '''Nullable
 +
| '''Default
 +
| '''Description
 +
| '''PK / Index
 +
 +
|-
 +
| SalesOrderID
 +
| int
 +
| not null
 +
|
 +
| Primary key. Foreign key to SalesOrderHeader.SalesOrderID.
 +
| PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID
 +
|-
 +
| SalesReasonID
 +
| int
 +
| not null
 +
|
 +
| Primary key. Foreign key to SalesReason.SalesReasonID.
 +
| PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID
 +
|-
 +
| ModifiedDate
 +
| datetime
 +
| not null
 +
| (GETDATE())
 +
| Date and time the record was last updated.
 
|  
 
|  
 
|}
 
|}

Revision as of 23:27, 26 November 2009

wikibot

Table Sales.SalesOrderHeaderSalesReason


Column Data Type Nullable Default PK Index
SalesOrderID int not null PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID
SalesReasonID int not null PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID
ModifiedDate datetime not null (getdate())


Relation Column Referenced Column
Sales.SalesOrderHeader SalesOrderID SalesOrderID
Sales.SalesReason SalesReasonID SalesReasonID

automatically generated

Table Sales.SalesOrderHeaderSalesReason
Description Cross-reference table mapping sales orders to sales reason codes.


Column Data Type Nullable Default Description PK / Index
SalesOrderID int not null Primary key. Foreign key to SalesOrderHeader.SalesOrderID. PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID
SalesReasonID int not null Primary key. Foreign key to SalesReason.SalesReasonID. PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Relation Column Referenced Column
Sales.SalesOrderHeader SalesOrderID SalesOrderID
Sales.SalesReason SalesReasonID SalesReasonID