Difference between revisions of "HumanResources.EmployeeDepartmentHistory (table)"
| Line 5: | Line 5: | ||
| '''Table | | '''Table | ||
| HumanResources.EmployeeDepartmentHistory | | HumanResources.EmployeeDepartmentHistory | ||
| + | |- valign="top" | ||
| + | | '''Description | ||
| + | | Employee department transfers. | ||
|- | |- | ||
|} | |} | ||
| Line 15: | Line 18: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
| − | | '''PK | + | | '''Description / PK / Index |
| − | |||
| − | |- | + | |- valign="top" |
| EmployeeID | | EmployeeID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
| − | | PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentID | + | | Employee identification number. Foreign key to Employee.EmployeeID.<br />PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentID |
| − | + | |- valign="top" | |
| − | |- | ||
| DepartmentID | | DepartmentID | ||
| smallint | | smallint | ||
| not null | | not null | ||
| | | | ||
| − | | | + | | Department in which the employee worked including currently. Foreign key to Department.DepartmentID.<br />PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentIDIX_EmployeeDepartmentHistory_DepartmentID |
| − | + | |- valign="top" | |
| − | |- | ||
| ShiftID | | ShiftID | ||
| tinyint | | tinyint | ||
| not null | | not null | ||
| | | | ||
| − | | | + | | Identifies which 8-hour shift the employee works. Foreign key to Shift.Shift.ID.<br />PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentIDIX_EmployeeDepartmentHistory_ShiftID |
| − | + | |- valign="top" | |
| − | |- | ||
| StartDate | | StartDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| | | | ||
| − | | PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentID | + | | Date the employee started work in the department.<br />PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentID |
| − | + | |- valign="top" | |
| − | |- | ||
| EndDate | | EndDate | ||
| datetime | | datetime | ||
| null | | null | ||
| | | | ||
| − | | | + | | Date the employee left the department. NULL = Current department.<br /> |
| − | + | |- valign="top" | |
| − | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
| − | | | + | | Date and time the record was last updated.<br /> |
| − | |||
|} | |} | ||
| Line 83: | Line 79: | ||
| ShiftID | | ShiftID | ||
|} | |} | ||
| + | |||
| + | |||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Reference Type | ||
| + | | '''Object Type | ||
| + | | '''Referencing Object | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | View | ||
| + | | [[HumanResources.vEmployeeDepartment_(view)|HumanResources.vEmployeeDepartment]] | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | View | ||
| + | | [[HumanResources.vEmployeeDepartmentHistory_(view)|HumanResources.vEmployeeDepartmentHistory]] | ||
| + | |||
| + | |} | ||
| + | |||
| + | |||
| + | |||
== automatically generated == | == automatically generated == | ||
Revision as of 22:54, 28 December 2009
wikibot
| Table | HumanResources.EmployeeDepartmentHistory |
| Description | Employee department transfers. |
| Column | Data Type | Nullable | Default | Description / PK / Index |
| EmployeeID | int | not null | Employee identification number. Foreign key to Employee.EmployeeID. PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentID | |
| DepartmentID | smallint | not null | Department in which the employee worked including currently. Foreign key to Department.DepartmentID. PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentIDIX_EmployeeDepartmentHistory_DepartmentID | |
| ShiftID | tinyint | not null | Identifies which 8-hour shift the employee works. Foreign key to Shift.Shift.ID. PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentIDIX_EmployeeDepartmentHistory_ShiftID | |
| StartDate | datetime | not null | Date the employee started work in the department. PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentID | |
| EndDate | datetime | null | Date the employee left the department. NULL = Current department. | |
| ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
| Relation | Column | Referenced Column |
| HumanResources.Department | DepartmentID | DepartmentID |
| HumanResources.Employee | EmployeeID | EmployeeID |
| HumanResources.Shift | ShiftID | ShiftID |
| Reference Type | Object Type | Referencing Object |
| Select | View | HumanResources.vEmployeeDepartment |
| Select | View | HumanResources.vEmployeeDepartmentHistory |
automatically generated
| Table | HumanResources.EmployeeDepartmentHistory |
| Description | Employee department transfers. |
| Column | Data Type | Nullable | Default | Description / PK / Index |
| EmployeeID | int | not null | Employee identification number. Foreign key to Employee.EmployeeID. PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentID | |
| DepartmentID | smallint | not null | Department in which the employee worked including currently. Foreign key to Department.DepartmentID. PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentIDIX_EmployeeDepartmentHistory_DepartmentID | |
| ShiftID | tinyint | not null | Identifies which 8-hour shift the employee works. Foreign key to Shift.Shift.ID. PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentIDIX_EmployeeDepartmentHistory_ShiftID | |
| StartDate | datetime | not null | Date the employee started work in the department. PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentID | |
| EndDate | datetime | null | Date the employee left the department. NULL = Current department. | |
| ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
| Relation | Column | Referenced Column |
| HumanResources.Department | DepartmentID | DepartmentID |
| HumanResources.Employee | EmployeeID | EmployeeID |
| HumanResources.Shift | ShiftID | ShiftID |
| Dependency Type | Object Type | Referenced Object |
| Schema | Schema | HumanResources |
| Reference Type | Object Type | Referencing Object |
| Select | View | HumanResources.vEmployeeDepartment |
| Select | View | HumanResources.vEmployeeDepartmentHistory |