Sales.SalesTerritoryHistory Table
Information
| Name | SalesTerritoryHistory |
| Schema | Sales |
| Row Count | 0 |
| Data Size | |
| Index Size | |
| Reserved Size | |
| Unused Size | |
| Created | 29.3.2010. 21:58:18 |
| Modified | 29.3.2010. 21:58:55 |
Extended Properties
| Name | Type | Property Name | Value |
| SalesTerritoryHistory | TABLE | MS_Description | Sales representative transfers to other sales territories. |
Columns
| PK | Key | Identity | Name | Data Type | Allow Nulls | Collation | References | Default | Computed | Compute Expression |
|   |   |   | SalesPersonID | int |   | | Sales.SalesPerson.SalesPersonID | |   | |
|   |   |   | TerritoryID | int |   | | Sales.SalesTerritory.TerritoryID | |   | |
|   |   |   | StartDate | datetime |   | | | |   | |
| |   |   | EndDate | datetime |   | | | |   | |
| |   |   | rowguid | uniqueidentifier |   | | | (newid()) |   | |
| |   |   | ModifiedDate | datetime |   | | | (getdate()) |   | |
Indexes
Check Constraints
Foreign Key Constraints
SQL Script
CREATE TABLE [Sales].[SalesTerritoryHistory] (
[SalesPersonID] int NOT NULL,
[TerritoryID] int NOT NULL,
[StartDate] datetime NOT NULL,
[EndDate] datetime NULL,
[rowguid] uniqueidentifier NOT NULL DEFAULT (newid()),
[ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE UNIQUE INDEX [AK_SalesTerritoryHistory_rowguid] on [Sales].[SalesTerritoryHistory]([rowguid]);