Difference between revisions of "Sales.SalesPersonQuotaHistory (table)"
(6 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- valign="top" |
| '''Table | | '''Table | ||
| Sales.SalesPersonQuotaHistory | | Sales.SalesPersonQuotaHistory | ||
− | |- | + | |- valign="top" |
+ | | '''Description | ||
+ | | Sales performance tracking. | ||
|} | |} | ||
− | + | === 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 15: | Line 17: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''Description |
− | + | ||
− | + | |- valign="top" | |
− | |- | ||
| SalesPersonID | | SalesPersonID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Sales person identification number. Foreign key to SalesPerson.SalesPersonID. |
− | + | |- valign="top" | |
− | |- | ||
| QuotaDate | | QuotaDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Sales quota date. |
− | + | |- valign="top" | |
− | |- | ||
| SalesQuota | | SalesQuota | ||
| money | | money | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Sales quota amount. |
− | + | |- valign="top" | |
− | |- | ||
| rowguid | | rowguid | ||
| uniqueidentifier | | uniqueidentifier | ||
| not null | | not null | ||
| (newid()) | | (newid()) | ||
− | | | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | 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 | ||
+ | |- valign="top" | ||
+ | | PK_SalesPersonQuotaHistory_SalesPersonID_QuotaDate | ||
+ | | SalesPersonID, QuotaDate | ||
+ | |} | ||
+ | |||
+ | === Indexes === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Index | ||
+ | | '''Type | ||
+ | | '''Columns | ||
+ | |||
+ | |- valign="top" | ||
+ | | AK_SalesPersonQuotaHistory_rowguid | ||
+ | | Unique | ||
+ | | rowguid | ||
|} | |} | ||
+ | === Check Constraints === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Check Constraint | ||
+ | | '''Expression | ||
+ | | '''Description | ||
+ | |- valign="top" | ||
+ | | 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 62: | Line 93: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
− | + | ||
− | |- | + | |- valign="top" |
| [[Sales.SalesPerson_(table)|Sales.SalesPerson]] | | [[Sales.SalesPerson_(table)|Sales.SalesPerson]] | ||
| SalesPersonID | | SalesPersonID | ||
| SalesPersonID | | SalesPersonID | ||
|} | |} | ||
+ | |||
+ | === References === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- valign="top" | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[Sales_(schema)|Sales]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
== automatically generated == | == automatically generated == | ||
Line 74: | Line 121: | ||
| '''Table | | '''Table | ||
| Sales.SalesPersonQuotaHistory | | Sales.SalesPersonQuotaHistory | ||
− | |- | + | |- valign="top" |
− | |||
| '''Description | | '''Description | ||
| Sales performance tracking. | | Sales performance tracking. | ||
|- | |- | ||
− | |||
|} | |} | ||
Line 135: | Line 180: | ||
| SalesPersonID | | SalesPersonID | ||
| SalesPersonID | | SalesPersonID | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[Sales_(schema)|Sales]] | ||
+ | |||
|} | |} |
Latest revision as of 00:17, 24 June 2010
Contents
wikibot[edit]
Table | Sales.SalesPersonQuotaHistory |
Description | Sales performance tracking. |
Columns[edit]
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[edit]
Primary Key | Columns |
PK_SalesPersonQuotaHistory_SalesPersonID_QuotaDate | SalesPersonID, QuotaDate |
Indexes[edit]
Index | Type | Columns |
AK_SalesPersonQuotaHistory_rowguid | Unique | rowguid |
Check Constraints[edit]
Check Constraint | Expression | Description |
CK_SalesPersonQuotaHistory_SalesQuota | ([SalesQuota]>(0.00)) | Check constraint [SalesQuota] > (0.00) |
Foreign Keys[edit]
Relation | Column | Referenced Column |
Sales.SalesPerson | SalesPersonID | SalesPersonID |
References[edit]
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Sales |
automatically generated[edit]
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 |