Sales SalesPersonQuotaHistory (table)

wikibot

TableSales.SalesPersonQuotaHistory
DescriptionSales performance tracking.

Columns

ColumnData TypeNullableDefaultDescription
SalesPersonIDintnot null Sales person identification number. Foreign key to SalesPerson.SalesPersonID.
QuotaDatedatetimenot null Sales quota date.
SalesQuotamoneynot null Sales quota amount.
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_SalesPersonQuotaHistory_SalesPersonID_QuotaDateSalesPersonID, QuotaDate

Indexes

IndexTypeColumns
AK_SalesPersonQuotaHistory_rowguidUniquerowguid

Check Constraints

Check ConstraintExpressionDescription
CK_SalesPersonQuotaHistory_SalesQuota(SalesQuota>(0.00))Check constraint SalesQuota > (0.00)

Foreign Keys

RelationColumnReferenced Column
Sales.SalesPersonSalesPersonIDSalesPersonID

References

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales