Difference between revisions of "Sales.SalesPerson (table)"
Line 5: | Line 5: | ||
| '''Table | | '''Table | ||
| Sales.SalesPerson | | Sales.SalesPerson | ||
+ | |- valign="top" | ||
+ | | '''Description | ||
+ | | Sales representative current information. | ||
|- | |- | ||
|} | |} | ||
Line 15: | Line 18: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''PK | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| SalesPersonID | | SalesPersonID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | PK_SalesPerson_SalesPersonID | + | | Primary key for SalesPerson records.<br />PK_SalesPerson_SalesPersonID |
− | + | |- valign="top" | |
− | |- | ||
| TerritoryID | | TerritoryID | ||
| int | | int | ||
| null | | null | ||
| | | | ||
− | | | + | | Territory currently assigned to. Foreign key to SalesTerritory.SalesTerritoryID.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| SalesQuota | | SalesQuota | ||
| money | | money | ||
| null | | null | ||
| | | | ||
− | | | + | | Projected yearly sales.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| Bonus | | Bonus | ||
| money | | money | ||
| not null | | not null | ||
| ((0.00)) | | ((0.00)) | ||
− | | | + | | Bonus due if quota is met.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| CommissionPct | | CommissionPct | ||
| smallmoney | | smallmoney | ||
| not null | | not null | ||
| ((0.00)) | | ((0.00)) | ||
− | | | + | | Commision percent received per sale.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| SalesYTD | | SalesYTD | ||
| money | | money | ||
| not null | | not null | ||
| ((0.00)) | | ((0.00)) | ||
− | | | + | | Sales total year to date.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| SalesLastYear | | SalesLastYear | ||
| money | | money | ||
| not null | | not null | ||
| ((0.00)) | | ((0.00)) | ||
− | | | + | | Sales total of previous year.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| rowguid | | rowguid | ||
| uniqueidentifier | | uniqueidentifier | ||
| not null | | not null | ||
| (newid()) | | (newid()) | ||
− | | | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_SalesPerson_rowguid |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | Date and time the record was last updated.<br /> |
− | |||
|} | |} | ||
Line 125: | Line 118: | ||
| SalesPersonID | | SalesPersonID | ||
|} | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Reference Type | ||
+ | | '''Object Type | ||
+ | | '''Referencing Object | ||
+ | |||
+ | | '''Child Type | ||
+ | | '''Child Object | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[Sales.vSalesPerson_(view)|Sales.vSalesPerson]] | ||
+ | |||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[Sales.vSalesPersonSalesByFiscalYears_(view)|Sales.vSalesPersonSalesByFiscalYears]] | ||
+ | |||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | Update | ||
+ | | Table | ||
+ | | [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]] | ||
+ | |||
+ | | Trigger | ||
+ | | uSalesOrderHeader | ||
+ | |} | ||
+ | |||
+ | |||
+ | |||
== automatically generated == | == automatically generated == | ||
Revision as of 22:55, 28 December 2009
wikibot
Table | Sales.SalesPerson |
Description | Sales representative current information. |
Column | Data Type | Nullable | Default | Description / PK / Index |
SalesPersonID | int | not null | Primary key for SalesPerson records. PK_SalesPerson_SalesPersonID | |
TerritoryID | int | null | Territory currently assigned to. Foreign key to SalesTerritory.SalesTerritoryID. | |
SalesQuota | money | null | Projected yearly sales. | |
Bonus | money | not null | ((0.00)) | Bonus due if quota is met. |
CommissionPct | smallmoney | not null | ((0.00)) | Commision percent received per sale. |
SalesYTD | money | not null | ((0.00)) | Sales total year to date. |
SalesLastYear | money | not null | ((0.00)) | Sales total of previous year. |
rowguid | uniqueidentifier | not null | (newid()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_SalesPerson_rowguid |
ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
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 |
Reference Type | Object Type | Referencing Object | Child Type | Child Object |
Select | View | Sales.vSalesPerson | ||
Select | View | Sales.vSalesPersonSalesByFiscalYears | ||
Update | Table | Sales.SalesOrderHeader | Trigger | uSalesOrderHeader |
automatically generated
Table | Sales.SalesPerson |
Description | Sales representative current information. |
Column | Data Type | Nullable | Default | Description / PK / Index |
SalesPersonID | int | not null | Primary key for SalesPerson records. PK_SalesPerson_SalesPersonID | |
TerritoryID | int | null | Territory currently assigned to. Foreign key to SalesTerritory.SalesTerritoryID. | |
SalesQuota | money | null | Projected yearly sales. | |
Bonus | money | not null | (0.00) | Bonus due if quota is met. |
CommissionPct | smallmoney | not null | (0.00) | Commision percent received per sale. |
SalesYTD | money | not null | (0.00) | Sales total year to date. |
SalesLastYear | money | not null | (0.00) | Sales total of previous year. |
rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_SalesPerson_rowguid |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
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 |
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Sales |
Reference Type | Object Type | Referencing Object | Child Type | Child Object |
Select | View | Sales.vSalesPerson | ||
Select | View | Sales.vSalesPersonSalesByFiscalYears | ||
Update | Table | Sales.SalesOrderHeader | Trigger | uSalesOrderHeader |