Welcome Guest, you are in: Login

devio dbscript ScrewTurn Wiki

RSS RSS

Navigation





Search the wiki
»

PoweredBy

wikibot

TableSales.SalesPerson
DescriptionSales representative current information.

Columns

ColumnData TypeNullableDefaultDescription
SalesPersonIDintnot null Primary key for SalesPerson records.
TerritoryIDintnull Territory currently assigned to. Foreign key to SalesTerritory.SalesTerritoryID.
SalesQuotamoneynull Projected yearly sales.
Bonusmoneynot null((0.00))Bonus due if quota is met.
CommissionPctsmallmoneynot null((0.00))Commision percent received per sale.
SalesYTDmoneynot null((0.00))Sales total year to date.
SalesLastYearmoneynot null((0.00))Sales total of previous year.
rowguiduniqueidentifiernot null(newid())ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
ModifiedDatedatetimenot null(getdate())Date and time the record was last updated.

Primary Key

Primary KeyColumns
PK_SalesPerson_SalesPersonIDSalesPersonID

Indexes

IndexTypeColumns
AK_SalesPerson_rowguidUniquerowguid

Check Constraints

Check ConstraintExpressionDescription
CK_SalesPerson_Bonus(Bonus>=(0.00))Check constraint Bonus >= (0.00)
CK_SalesPerson_CommissionPct(CommissionPct>=(0.00))Check constraint CommissionPct >= (0.00)
CK_SalesPerson_SalesLastYear(SalesLastYear>=(0.00))Check constraint SalesLastYear >= (0.00)
CK_SalesPerson_SalesQuota(SalesQuota>(0.00))Check constraint SalesQuota > (0.00)
CK_SalesPerson_SalesYTD(SalesYTD>=(0.00))Check constraint SalesYTD >= (0.00)

Foreign Keys

RelationColumnReferenced Column
HumanResources.EmployeeSalesPersonIDEmployeeID
Sales.SalesTerritoryTerritoryIDTerritoryID

Detail Tables

Detail TableColumnReferencing Column
Sales.SalesOrderHeaderSalesPersonIDSalesPersonID
Sales.SalesPersonQuotaHistorySalesPersonIDSalesPersonID
Sales.SalesTerritoryHistorySalesPersonIDSalesPersonID
Sales.StoreSalesPersonIDSalesPersonID

References

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales

Dependencies

Reference TypeObject TypeReferencing ObjectChild TypeChild Object
SelectViewSales.vSalesPerson  
SelectViewSales.vSalesPersonSalesByFiscalYears  
UpdateTableSales.SalesOrderHeaderTriggeruSalesOrderHeader

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam.