Difference between revisions of "Sales.SalesPerson (table)"
(New page: == wikibot == {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- | '''Table | Sales.SalesPerson |- |} {| border="1" cellpadding="5" cellspacing="0" style=...) |
(No difference)
|
Revision as of 13:34, 3 January 2009
wikibot
| Table | Sales.SalesPerson |
| Column | Data Type | Nullable | Default | PK | Index |
| SalesPersonID | int | not null | PK_SalesPerson_SalesPersonID | ||
| TerritoryID | int | null | |||
| SalesQuota | money | null | |||
| Bonus | money | not null | ((0.00)) | ||
| CommissionPct | smallmoney | not null | ((0.00)) | ||
| SalesYTD | money | not null | ((0.00)) | ||
| SalesLastYear | money | not null | ((0.00)) | ||
| rowguid | uniqueidentifier | not null | (newid()) | AK_SalesPerson_rowguid | |
| ModifiedDate | datetime | not null | (getdate()) |
| Relation | Column | Referenced Column |
| HumanResources.Employee | SalesPersonID | EmployeeID |
| Sales.SalesTerritory | TerritoryID | TerritoryID |
| Detail Table | Column | Referencing Column |
| Sales.SalesOrderHeader | SalesPersonID | SalesPersonID |
| Sales.SalesPersonQuotaHistory | SalesPersonID | SalesPersonID |
| Sales.SalesTerritoryHistory | SalesPersonID | SalesPersonID |
| Sales.Store | SalesPersonID | SalesPersonID |