Difference between revisions of "HumanResources.Department (table)"

From dbscript Online Help
Jump to: navigation, search
Line 130: Line 130:
 
| '''Object Type
 
| '''Object Type
 
| '''Dependency Type
 
| '''Dependency Type
+
 
 
|-
 
|-
 
| [[dbo.Name_(type)|dbo.Name]]
 
| [[dbo.Name_(type)|dbo.Name]]
 
| Type
 
| Type
 
| Data Type
 
| Data Type
 +
|-
 +
| [[.HumanResources_(schema)|.HumanResources]]
 +
| Schema
 +
| Schema
 
|}
 
|}
  
Line 143: Line 147:
 
| '''Object Type
 
| '''Object Type
 
| '''Reference Type
 
| '''Reference Type
+
 
 
|-
 
|-
 
| [[HumanResources.vEmployeeDepartment_(view)|HumanResources.vEmployeeDepartment]]
 
| [[HumanResources.vEmployeeDepartment_(view)|HumanResources.vEmployeeDepartment]]

Revision as of 07:23, 30 November 2009

wikibot

Table HumanResources.Department


Column Data Type Nullable Default PK Index
DepartmentID smallint not null PK_Department_DepartmentID
Name dbo.Name not null AK_Department_Name
GroupName dbo.Name not null
ModifiedDate datetime not null (getdate())


Detail Table Column Referencing Column
HumanResources.EmployeeDepartmentHistory DepartmentID DepartmentID

automatically generated

Table HumanResources.Department
Description Lookup table containing the departments within the Adventure Works Cycles company.


Column Data Type Nullable Default Description / PK / Index
DepartmentID smallint not null Primary key for Department records.
PK_Department_DepartmentID
Name Name not null Name of the department.
AK_Department_Name
GroupName Name not null Name of the group to which the department belongs.
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Detail Table Column Referencing Column
HumanResources.EmployeeDepartmentHistory DepartmentID DepartmentID


Referenced Object Object Type Dependency Type
dbo.Name Type Data Type
.HumanResources Schema Schema


Referencing Object Object Type Reference Type
HumanResources.vEmployeeDepartment View Select
HumanResources.vEmployeeDepartmentHistory View Select