Welcome
Guest
, you are in:
<root>
•
Login
devio dbscript ScrewTurn Wiki
Navigation
¶
Main Page
Random Page
Create a new Page
All Pages
Categories
Navigation Paths
Administration
File Management
Create Account
Search the wiki
»
Back
HumanResources EmployeeDepartmentHistory (table)
Modified on 2011/08/27 11:17
by
wikibot
Categorized as
Uncategorized
== wikibot == {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- valign="top" | '''Table''' | HumanResources.EmployeeDepartmentHistory |- valign="top" | '''Description''' | Employee department transfers. |} === Columns === {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- style="background:silver" | '''Column''' | '''Data Type''' | '''Nullable''' | '''Default''' | '''Description''' |- valign="top" | EmployeeID | int | not null | | Employee identification number. Foreign key to Employee.EmployeeID. |- valign="top" | DepartmentID | smallint | not null | | Department in which the employee worked including currently. Foreign key to Department.DepartmentID. |- valign="top" | ShiftID | tinyint | not null | | Identifies which 8-hour shift the employee works. Foreign key to Shift.Shift.ID. |- valign="top" | StartDate | datetime | not null | | Date the employee started work in the department. |- valign="top" | EndDate | datetime | null | | Date the employee left the department. NULL = Current department. |- valign="top" | ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |} === Primary Key === {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- style="background:silver" | '''Primary Key''' | '''Columns''' |- valign="top" | PK_EmployeeDepartmentHistory_EmployeeID_StartDate_DepartmentID | EmployeeID, DepartmentID, ShiftID, StartDate |} === Indexes === {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- style="background:silver" | '''Index''' | '''Type''' | '''Columns''' |- valign="top" | IX_EmployeeDepartmentHistory_DepartmentID | | DepartmentID |- valign="top" | IX_EmployeeDepartmentHistory_ShiftID | | ShiftID |} === Check Constraints === {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- style="background:silver" | '''Check Constraint''' | '''Expression''' | '''Description''' |- valign="top" | CK_EmployeeDepartmentHistory_EndDate | ([EndDate]>=[StartDate] OR [EndDate] IS NULL) | Check constraint [EndDate] >= [StartDate] OR [EndDate] IS NUL |} === Foreign Keys === {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- style="background:silver" | '''Relation''' | '''Column''' | '''Referenced Column''' |- valign="top" | [[HumanResources Department (table)|HumanResources.Department]] | DepartmentID | DepartmentID |- valign="top" | [[HumanResources Employee (table)|HumanResources.Employee]] | EmployeeID | EmployeeID |- valign="top" | [[HumanResources Shift (table)|HumanResources.Shift]] | ShiftID | ShiftID |} === References === {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- style="background:silver" | '''Dependency Type''' | '''Object Type''' | '''Referenced Object''' |- valign="top" | Schema | Schema | [[HumanResources (schema)|HumanResources]] |} === Dependencies === {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- style="background:silver" | '''Reference Type''' | '''Object Type''' | '''Referencing Object''' |- valign="top" | Select | View | [[HumanResources vEmployeeDepartment (view)|HumanResources.vEmployeeDepartment]] |- valign="top" | Select | View | [[HumanResources vEmployeeDepartmentHistory (view)|HumanResources.vEmployeeDepartmentHistory]] |}
ScrewTurn Wiki
version 3.0.1.400. Some of the icons created by
FamFamFam
.