Sales representative transfers to other sales territories.
| Creation Date | 27/10/2017 14:33 |
| File Group | PRIMARY |
| Text File Group | |
| System Object | ![]() |
| Published for Replication | ![]() |
| Rows | 17 |
| Data Space Used | 8.00 KB |
| Index Space Used | 24.00 KB |
| Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
|---|---|---|---|---|---|---|---|
| BusinessEntityID | Primary key. The sales rep. Foreign key to SalesPerson.BusinessEntityID. | Integer | 4 | |||
| TerritoryID | Primary key. Territory identification number. Foreign key to SalesTerritory.SalesTerritoryID. | Integer | 4 | |||
| StartDate | Primary key. Date the sales representive started work in the territory. | DBTimeStamp | 4 | |||
| EndDate | Date the sales representative left work in the territory. | DBTimeStamp | 4 | ![]() | |||
| rowguid | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | GUID | 16 | (newid()) | |||
| ModifiedDate | Date and time the record was last updated. | DBTimeStamp | 4 | (getdate()) |
| Index | Description | Primary | Unique |
|---|---|---|---|
| AK_SalesTerritoryHistory_rowguid | Unique nonclustered index. Used to support replication samples. | ![]() | |
| PK_SalesTerritoryHistory_BusinessEntityID_StartDate_TerritoryID | Primary key (clustered) constraint | ![]() | ![]() |
| Name | Description | Expression |
|---|---|---|
| CK_SalesTerritoryHistory_EndDate | Check constraint [EndDate] >= [StartDate] OR [EndDate] IS NULL | ([EndDate]>=[StartDate] OR [EndDate] IS NULL) |
| Relationship | Description |
|---|---|
| FK_SalesTerritoryHistory_SalesPerson_BusinessEntityID | Foreign key constraint referencing SalesPerson.SalesPersonID. |
| FK_SalesTerritoryHistory_SalesTerritory_TerritoryID | Foreign key constraint referencing SalesTerritory.TerritoryID. |
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | Person.BusinessEntity | Table | Source of the ID that connects vendors, customers, and employees with address and contact information. | 4 |
![]() | Person.CountryRegion | Table | Lookup table containing the ISO standard codes for countries and regions. | 2 |
![]() | HumanResources.Employee | Table | Employee information such as salary, department, and title. | 2 |
![]() | dbo.Flag | User Defined Data Type | 3 | |
![]() | dbo.NameStyle | User Defined Data Type | 4 | |
![]() | Person.Person | Table | Human beings involved with AdventureWorks: employees, customer contacts, and vendor contacts. | 3 |
![]() | Sales.SalesPerson | Table | Sales representative current information. | 1 |
![]() | Sales.SalesTerritory | Table | Sales territory lookup table. | 1 |
|