EmployeeDepartmentHistory 表 (AdventureWorks)

包含雇员及其所在部门的当前和历史数据。EndDate 列中的空值表示雇员当前所在的部门。

EmployeeDepartmentHistory 表定义

EmployeeDepartmentHistory 表包含在 HumanResources 架构中。

列 数据类型 为空性 说明

EmployeeID

int

非空

雇员标识号。指向 Employee.EmployeeID 的外键。

DepartmentID

smallint

非空

雇员现在所在或原来所在的部门。指向 Department.DepartmentID 的外键。

ShiftID

tinyint

非空

分配给雇员的工作轮班时间(例如,白班、晚班或夜班)。指向 Shift.ShiftID 的外键。

Startdate

datetime

非空

雇员在部门中开始工作的日期。

EndDate

datetime

空

雇员离开部门的日期。

空 = 当前部门

ModifiedDate

datetime

非空

行的上次更新日期和时间。

请参阅

参考

Department 表 (AdventureWorks)
Employee 表 (AdventureWorks)
Shift 表 (AdventureWorks)

其他资源

AdventureWorks 数据字典

帮助和信息

获取 SQL Server 2005 帮助