Difference between revisions of "Sales.SalesTerritoryHistory (table)"
Line 156: | Line 156: | ||
| TerritoryID | | TerritoryID | ||
| TerritoryID | | TerritoryID | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Referenced Object | ||
+ | | '''Object Type | ||
+ | | '''Dependency Type | ||
+ | |||
+ | |- | ||
+ | | [[.Sales_(schema)|.Sales]] | ||
+ | | Schema | ||
+ | | Schema | ||
|} | |} |
Revision as of 06:24, 30 November 2009
wikibot
Table | Sales.SalesTerritoryHistory |
Column | Data Type | Nullable | Default | PK | Index |
SalesPersonID | int | not null | PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID | ||
TerritoryID | int | not null | PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID | ||
StartDate | datetime | not null | PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID | ||
EndDate | datetime | null | |||
rowguid | uniqueidentifier | not null | (newid()) | AK_SalesTerritoryHistory_rowguid | |
ModifiedDate | datetime | not null | (getdate()) |
Relation | Column | Referenced Column |
Sales.SalesPerson | SalesPersonID | SalesPersonID |
Sales.SalesTerritory | TerritoryID | TerritoryID |
automatically generated
Table | Sales.SalesTerritoryHistory |
Description | Sales representative transfers to other sales territories. |
Column | Data Type | Nullable | Default | Description / PK / Index |
SalesPersonID | int | not null | Primary key for SalesTerritoryHistory records. PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID | |
TerritoryID | int | not null | Territory identification number. Foreign key to SalesTerritory.SalesTerritoryID. PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID | |
StartDate | datetime | not null | Date the sales representive started work in the territory. PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID | |
EndDate | datetime | null | Date the sales representative left work in the territory. | |
rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_SalesTerritoryHistory_rowguid |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
Relation | Column | Referenced Column |
Sales.SalesPerson | SalesPersonID | SalesPersonID |
Sales.SalesTerritory | TerritoryID | TerritoryID |
Referenced Object | Object Type | Dependency Type |
.Sales | Schema | Schema |