ScrewTurn Wiki

Edit

wikibot

TableSales.SalesPersonQuotaHistory
DescriptionSales performance tracking.

Edit

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.

Edit

Primary Key

Primary KeyColumns
PK_SalesPersonQuotaHistory_SalesPersonID_QuotaDateSalesPersonID, QuotaDate

Edit

Indexes

IndexTypeColumns
AK_SalesPersonQuotaHistory_rowguidUniquerowguid

Edit

Check Constraints

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

Edit

Foreign Keys

RelationColumnReferenced Column
Sales.SalesPersonSalesPersonIDSalesPersonID

Edit

References

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales

Edit

automatically generated

TableSales.SalesPersonQuotaHistory
DescriptionSales performance tracking.

ColumnData TypeNullableDefaultDescription / PK / Index
SalesPersonIDintnot null Sales person identification number. Foreign key to SalesPerson.SalesPersonID.
PK_SalesPersonQuotaHistory_SalesPersonID_QuotaDate
QuotaDatedatetimenot null Sales quota date.
PK_SalesPersonQuotaHistory_SalesPersonID_QuotaDate
SalesQuotamoneynot null Sales quota amount.
rowguiduniqueidentifiernot null(NEWID())ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
AK_SalesPersonQuotaHistory_rowguid
ModifiedDatedatetimenot null(GETDATE())Date and time the record was last updated.



RelationColumnReferenced Column
Sales.SalesPersonSalesPersonIDSalesPersonID

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales

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