Difference between revisions of "Sales.SalesTerritoryHistory (table)"

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| Sales.SalesTerritoryHistory
 
| Sales.SalesTerritoryHistory
 +
|- valign="top"
 +
| '''Description
 +
| Sales representative transfers to other sales territories.
 
|-
 
|-
 
|}
 
|}
Line 15: Line 18:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description / PK / Index
| '''Index
 
 
 
|-
+
|- valign="top"
 
| SalesPersonID
 
| SalesPersonID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID
+
| Primary key for SalesTerritoryHistory records.<br />PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID
|
+
|- valign="top"
|-
 
 
| TerritoryID
 
| TerritoryID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID
+
| Territory identification number. Foreign key to SalesTerritory.SalesTerritoryID.<br />PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID
|
+
|- valign="top"
|-
 
 
| StartDate
 
| StartDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
|  
 
|  
| PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID
+
| Date the sales representive started work in the territory.<br />PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID
|
+
|- valign="top"
|-
 
 
| EndDate
 
| EndDate
 
| datetime
 
| datetime
 
| null
 
| null
 
|  
 
|  
|  
+
| Date the sales representative left work in the territory.<br />
|
+
|- 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.<br />AK_SalesTerritoryHistory_rowguid
| AK_SalesTerritoryHistory_rowguid
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
|  
+
| Date and time the record was last updated.<br />
|
 
 
|}
 
|}
  
Line 79: Line 75:
 
| TerritoryID
 
| TerritoryID
 
|}
 
|}
 +
 +
 +
 
== automatically generated ==
 
== automatically generated ==
  

Revision as of 23:55, 28 December 2009

wikibot

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


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


Dependency Type Object Type Referenced Object
Schema Schema Sales