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

From dbscript Online Help
Jump to: navigation, search
Line 61: Line 61:
 
| DepartmentID
 
| DepartmentID
 
|}
 
|}
 
 
== automatically generated ==
 
== automatically generated ==
  
Line 83: Line 82:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description
+
| '''Description / PK / Index
| '''PK / Index
 
 
 
|-
+
|- valign="top"
 
| DepartmentID
 
| DepartmentID
 
| smallint
 
| smallint
 
| not null
 
| not null
 
|  
 
|  
| Primary key for Department records.
+
| Primary key for Department records.PK_Department_DepartmentID
| PK_Department_DepartmentID
+
|- valign="top"
|-
 
 
| Name
 
| Name
 
| Name
 
| Name
 
| not null
 
| not null
 
|  
 
|  
| Name of the department.
+
| Name of the department.AK_Department_Name
| AK_Department_Name
+
|- valign="top"
|-
 
 
| GroupName
 
| GroupName
 
| Name
 
| Name
Line 106: Line 102:
 
|  
 
|  
 
| Name of the group to which the department belongs.
 
| Name of the group to which the department belongs.
|
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
Line 113: Line 108:
 
| (GETDATE())
 
| (GETDATE())
 
| Date and time the record was last updated.
 
| Date and time the record was last updated.
|
 
 
|}
 
|}
  
Line 128: Line 122:
 
| DepartmentID
 
| DepartmentID
 
| DepartmentID
 
| DepartmentID
 +
|}
 +
 +
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Referenced Object
 +
| '''Object Type
 +
| '''Dependency Type
 +
 +
|-
 +
| [[dbo.Name_(type)|dbo.Name]]
 +
| Type
 +
| Data Type
 +
|}
 +
 +
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Referencing Object
 +
| '''Object Type
 +
| '''Reference Type
 +
 +
|-
 +
| [[HumanResources.vEmployeeDepartment_(view)|HumanResources.vEmployeeDepartment]]
 +
| View
 +
| Select
 +
|-
 +
| [[HumanResources.vEmployeeDepartmentHistory_(view)|HumanResources.vEmployeeDepartmentHistory]]
 +
| View
 +
| Select
 
|}
 
|}

Revision as of 00:57, 27 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


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