Difference between revisions of "Sales.SalesReason (table)"
| Line 5: | Line 5: | ||
| '''Table | | '''Table | ||
| Sales.SalesReason | | Sales.SalesReason | ||
| + | |- valign="top" | ||
| + | | '''Description | ||
| + | | Lookup table of customer purchase reasons. | ||
|- | |- | ||
|} | |} | ||
| Line 15: | Line 18: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
| − | | '''PK | + | | '''Description / PK / Index |
| − | |||
| − | |- | + | |- valign="top" |
| SalesReasonID | | SalesReasonID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
| − | | PK_SalesReason_SalesReasonID | + | | Primary key for SalesReason records.<br />PK_SalesReason_SalesReasonID |
| − | + | |- valign="top" | |
| − | |- | ||
| Name | | Name | ||
| dbo.Name | | dbo.Name | ||
| not null | | not null | ||
| | | | ||
| − | | | + | | Sales reason description.<br /> |
| − | + | |- valign="top" | |
| − | |- | ||
| ReasonType | | ReasonType | ||
| dbo.Name | | dbo.Name | ||
| not null | | not null | ||
| | | | ||
| − | | | + | | Category the sales reason belongs to.<br /> |
| − | + | |- valign="top" | |
| − | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
| − | | | + | | Date and time the record was last updated.<br /> |
| − | |||
|} | |} | ||
| Line 61: | Line 59: | ||
| SalesReasonID | | SalesReasonID | ||
|} | |} | ||
| + | |||
| + | |||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Dependency Type | ||
| + | | '''Object Type | ||
| + | | '''Referenced Object | ||
| + | |||
| + | |- | ||
| + | | Data Type | ||
| + | | Type | ||
| + | | [[dbo.Name_(type)|dbo.Name]] | ||
| + | |||
| + | |} | ||
| + | |||
| + | |||
| + | |||
== wikivalues == | == wikivalues == | ||
Revision as of 22:55, 28 December 2009
wikibot
| 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 | 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. |
| Detail Table | Column | Referencing Column |
| Sales.SalesOrderHeaderSalesReason | SalesReasonID | SalesReasonID |
| Dependency Type | Object Type | Referenced Object |
| Data Type | Type | dbo.Name |
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 |