Editing Sales.SalesPerson (table)
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- |
| '''Table | | '''Table | ||
| Sales.SalesPerson | | Sales.SalesPerson | ||
− | |- | + | |- |
− | |||
− | |||
|} | |} | ||
− | + | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 17: | Line 15: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''PK |
− | + | | '''Index | |
− | |- | + | |
+ | |- | ||
| SalesPersonID | | SalesPersonID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | PK_SalesPerson_SalesPersonID |
− | |- | + | | |
+ | |- | ||
| TerritoryID | | TerritoryID | ||
| int | | int | ||
| null | | null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| SalesQuota | | SalesQuota | ||
| money | | money | ||
| null | | null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| Bonus | | Bonus | ||
| money | | money | ||
| not null | | not null | ||
| ((0.00)) | | ((0.00)) | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| CommissionPct | | CommissionPct | ||
| smallmoney | | smallmoney | ||
| not null | | not null | ||
| ((0.00)) | | ((0.00)) | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| SalesYTD | | SalesYTD | ||
| money | | money | ||
| not null | | not null | ||
| ((0.00)) | | ((0.00)) | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| SalesLastYear | | SalesLastYear | ||
| money | | money | ||
| not null | | not null | ||
| ((0.00)) | | ((0.00)) | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| rowguid | | rowguid | ||
| uniqueidentifier | | uniqueidentifier | ||
| not null | | not null | ||
| (newid()) | | (newid()) | ||
− | | | + | | |
− | |- | + | | AK_SalesPerson_rowguid |
+ | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | |
− | | | + | | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 133: | Line 90: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
− | + | ||
− | |- | + | |- |
| [[HumanResources.Employee_(table)|HumanResources.Employee]] | | [[HumanResources.Employee_(table)|HumanResources.Employee]] | ||
| SalesPersonID | | SalesPersonID | ||
| EmployeeID | | EmployeeID | ||
− | |- | + | |- |
| [[Sales.SalesTerritory_(table)|Sales.SalesTerritory]] | | [[Sales.SalesTerritory_(table)|Sales.SalesTerritory]] | ||
| TerritoryID | | TerritoryID | ||
Line 144: | Line 101: | ||
|} | |} | ||
− | + | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 150: | Line 107: | ||
| '''Column | | '''Column | ||
| '''Referencing Column | | '''Referencing Column | ||
− | + | ||
− | |- | + | |- |
| [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]] | | [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]] | ||
| SalesPersonID | | SalesPersonID | ||
| SalesPersonID | | SalesPersonID | ||
− | |- | + | |- |
| [[Sales.SalesPersonQuotaHistory_(table)|Sales.SalesPersonQuotaHistory]] | | [[Sales.SalesPersonQuotaHistory_(table)|Sales.SalesPersonQuotaHistory]] | ||
| SalesPersonID | | SalesPersonID | ||
| SalesPersonID | | SalesPersonID | ||
− | |- | + | |- |
| [[Sales.SalesTerritoryHistory_(table)|Sales.SalesTerritoryHistory]] | | [[Sales.SalesTerritoryHistory_(table)|Sales.SalesTerritoryHistory]] | ||
| SalesPersonID | | SalesPersonID | ||
| SalesPersonID | | SalesPersonID | ||
− | |- | + | |- |
| [[Sales.Store_(table)|Sales.Store]] | | [[Sales.Store_(table)|Sales.Store]] | ||
| SalesPersonID | | SalesPersonID | ||
| SalesPersonID | | SalesPersonID | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== automatically generated == | == automatically generated == | ||
Line 223: | Line 131: | ||
| '''Table | | '''Table | ||
| Sales.SalesPerson | | Sales.SalesPerson | ||
− | |- | + | |- |
+ | |||
| '''Description | | '''Description | ||
| Sales representative current information. | | Sales representative current information. | ||
|- | |- | ||
+ | |||
|} | |} | ||
Line 243: | Line 153: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for SalesPerson records. | + | | Primary key for SalesPerson records.PK_SalesPerson_SalesPersonID |
|- valign="top" | |- valign="top" | ||
| TerritoryID | | TerritoryID | ||
Line 249: | Line 159: | ||
| null | | null | ||
| | | | ||
− | | Territory currently assigned to. Foreign key to SalesTerritory.SalesTerritoryID. | + | | Territory currently assigned to. Foreign key to SalesTerritory.SalesTerritoryID. |
|- valign="top" | |- valign="top" | ||
| SalesQuota | | SalesQuota | ||
Line 255: | Line 165: | ||
| null | | null | ||
| | | | ||
− | | Projected yearly sales. | + | | Projected yearly sales. |
|- valign="top" | |- valign="top" | ||
| Bonus | | Bonus | ||
Line 261: | Line 171: | ||
| not null | | not null | ||
| (0.00) | | (0.00) | ||
− | | Bonus due if quota is met. | + | | Bonus due if quota is met. |
|- valign="top" | |- valign="top" | ||
| CommissionPct | | CommissionPct | ||
Line 267: | Line 177: | ||
| not null | | not null | ||
| (0.00) | | (0.00) | ||
− | | Commision percent received per sale. | + | | Commision percent received per sale. |
|- valign="top" | |- valign="top" | ||
| SalesYTD | | SalesYTD | ||
Line 273: | Line 183: | ||
| not null | | not null | ||
| (0.00) | | (0.00) | ||
− | | Sales total year to date. | + | | Sales total year to date. |
|- valign="top" | |- valign="top" | ||
| SalesLastYear | | SalesLastYear | ||
Line 279: | Line 189: | ||
| not null | | not null | ||
| (0.00) | | (0.00) | ||
− | | Sales total of previous year. | + | | Sales total of previous year. |
|- valign="top" | |- valign="top" | ||
| rowguid | | rowguid | ||
Line 285: | Line 195: | ||
| not null | | not null | ||
| (NEWID()) | | (NEWID()) | ||
− | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.AK_SalesPerson_rowguid |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 291: | Line 201: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
|} | |} | ||
Line 340: | Line 250: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
− | | ''' | + | | '''Referencing Object |
| '''Object Type | | '''Object Type | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| '''Reference Type | | '''Reference Type | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
+ | | [[Sales.vSalesPerson_(view)|Sales.vSalesPerson]] | ||
+ | | View | ||
| Select | | Select | ||
+ | |- | ||
+ | | [[Sales.vSalesPersonSalesByFiscalYears_(view)|Sales.vSalesPersonSalesByFiscalYears]] | ||
| View | | View | ||
− | |||
− | |||
− | |||
− | |||
− | |||
| Select | | Select | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
+ | | [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]] | ||
+ | | Table | ||
| Update | | Update | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |