HumanResources.EmployeeDepartmentHistory Table
Information
| Name | EmployeeDepartmentHistory |
| Schema | HumanResources |
| Row Count | 0 |
| Data Size | |
| Index Size | |
| Reserved Size | |
| Unused Size | |
| Created | 29.3.2010. 21:58:18 |
| Modified | 29.3.2010. 21:58:54 |
Extended Properties
| Name | Type | Property Name | Value |
| EmployeeDepartmentHistory | TABLE | MS_Description | Employee department transfers. |
Columns
| PK | Key | Identity | Name | Data Type | Allow Nulls | Collation | References | Default | Computed | Compute Expression |
|   |   |   | EmployeeID | int |   | | HumanResources.Employee.EmployeeID | |   | |
|   |   |   | DepartmentID | smallint |   | | HumanResources.Department.DepartmentID | |   | |
|   |   |   | ShiftID | tinyint |   | | HumanResources.Shift.ShiftID | |   | |
|   |   |   | StartDate | datetime |   | | | |   | |
| |   |   | EndDate | datetime |   | | | |   | |
| |   |   | ModifiedDate | datetime |   | | | (getdate()) |   | |
Indexes
Check Constraints
Foreign Key Constraints
SQL Script
CREATE TABLE [HumanResources].[EmployeeDepartmentHistory] (
[EmployeeID] int NOT NULL,
[DepartmentID] smallint NOT NULL,
[ShiftID] tinyint NOT NULL,
[StartDate] datetime NOT NULL,
[EndDate] datetime NULL,
[ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE INDEX [IX_EmployeeDepartmentHistory_DepartmentID] on [HumanResources].[EmployeeDepartmentHistory]([DepartmentID]);
CREATE INDEX [IX_EmployeeDepartmentHistory_ShiftID] on [HumanResources].[EmployeeDepartmentHistory]([ShiftID]);