Sales SalesOrderHeaderSalesReason (table)

wikibot

TableSales.SalesOrderHeaderSalesReason
DescriptionCross-reference table mapping sales orders to sales reason codes.

Columns

ColumnData TypeNullableDefaultDescription
SalesOrderIDintnot null Primary key. Foreign key to SalesOrderHeader.SalesOrderID.
SalesReasonIDintnot null Primary key. Foreign key to SalesReason.SalesReasonID.
ModifiedDatedatetimenot null(getdate())Date and time the record was last updated.

Primary Key

Primary KeyColumns
PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonIDSalesOrderID, SalesReasonID

Foreign Keys

RelationColumnReferenced Column
Sales.SalesOrderHeaderSalesOrderIDSalesOrderID
Sales.SalesReasonSalesReasonIDSalesReasonID

References

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales