Difference between revisions of "Sales.SalesPersonQuotaHistory (table)"
Line 12: | Line 12: | ||
+ | === Columns === | ||
{| 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 18: | Line 19: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description |
|- valign="top" | |- valign="top" | ||
Line 25: | Line 26: | ||
| not null | | not null | ||
| | | | ||
− | | Sales person identification number. Foreign key to SalesPerson.SalesPersonID. | + | | Sales person identification number. Foreign key to SalesPerson.SalesPersonID. |
|- valign="top" | |- valign="top" | ||
| QuotaDate | | QuotaDate | ||
Line 31: | Line 32: | ||
| not null | | not null | ||
| | | | ||
− | | Sales quota date. | + | | Sales quota date. |
|- valign="top" | |- valign="top" | ||
| SalesQuota | | SalesQuota | ||
Line 37: | Line 38: | ||
| not null | | not null | ||
| | | | ||
− | | Sales quota amount. | + | | Sales quota amount. |
|- valign="top" | |- valign="top" | ||
| rowguid | | rowguid | ||
Line 43: | Line 44: | ||
| 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. |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 49: | Line 50: | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
|} | |} | ||
+ | === Primary Key === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Primary Key | ||
+ | | '''Columns | ||
+ | |- | ||
+ | | PK_SalesPersonQuotaHistory_SalesPersonID_QuotaDate | ||
+ | | SalesPersonID, QuotaDate | ||
+ | |} | ||
+ | |||
+ | === Indexes === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Index | ||
+ | | '''Type | ||
+ | | '''Columns | ||
+ | |||
+ | |- | ||
+ | | AK_SalesPersonQuotaHistory_rowguid | ||
+ | | Unique | ||
+ | | rowguid | ||
+ | |} | ||
+ | === Check Constraints === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Check Constraint | ||
+ | | '''Expression | ||
+ | | '''Description | ||
+ | |||
+ | |- | ||
+ | | CK_SalesPersonQuotaHistory_SalesQuota | ||
+ | | ([SalesQuota]>(0.00)) | ||
+ | | Check constraint [SalesQuota] > (0.00) | ||
+ | |} | ||
+ | === Foreign Keys === | ||
{| 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 66: | Line 102: | ||
|} | |} | ||
+ | === References === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[Sales_(schema)|Sales]] | ||
+ | |||
+ | |} | ||
Revision as of 00:06, 3 February 2010
Contents
wikibot
Table | Sales.SalesPersonQuotaHistory |
Description | Sales performance tracking. |
Columns
Column | Data Type | Nullable | Default | Description |
SalesPersonID | int | not null | Sales person identification number. Foreign key to SalesPerson.SalesPersonID. | |
QuotaDate | datetime | not null | Sales quota date. | |
SalesQuota | money | not null | Sales quota amount. | |
rowguid | uniqueidentifier | not null | (newid()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. |
ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
Primary Key
Primary Key | Columns |
PK_SalesPersonQuotaHistory_SalesPersonID_QuotaDate | SalesPersonID, QuotaDate |
Indexes
Index | Type | Columns |
AK_SalesPersonQuotaHistory_rowguid | Unique | rowguid |
Check Constraints
Check Constraint | Expression | Description |
CK_SalesPersonQuotaHistory_SalesQuota | ([SalesQuota]>(0.00)) | Check constraint [SalesQuota] > (0.00) |
Foreign Keys
Relation | Column | Referenced Column |
Sales.SalesPerson | SalesPersonID | SalesPersonID |
References
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Sales |
automatically generated
Table | Sales.SalesPersonQuotaHistory |
Description | Sales performance tracking. |
Column | Data Type | Nullable | Default | Description / PK / Index |
SalesPersonID | int | not null | Sales person identification number. Foreign key to SalesPerson.SalesPersonID. PK_SalesPersonQuotaHistory_SalesPersonID_QuotaDate | |
QuotaDate | datetime | not null | Sales quota date. PK_SalesPersonQuotaHistory_SalesPersonID_QuotaDate | |
SalesQuota | money | not null | Sales quota amount. | |
rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_SalesPersonQuotaHistory_rowguid |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
Relation | Column | Referenced Column |
Sales.SalesPerson | SalesPersonID | SalesPersonID |
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Sales |