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

From dbscript Online Help
Jump to: navigation, search
Line 89: Line 89:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for Department records.PK_Department_DepartmentID
+
| Primary key for Department records.<br />PK_Department_DepartmentID
 
|- valign="top"
 
|- valign="top"
 
| Name
 
| Name
Line 95: Line 95:
 
| not null
 
| not null
 
|  
 
|  
| Name of the department.AK_Department_Name
+
| Name of the department.<br />AK_Department_Name
 
|- valign="top"
 
|- valign="top"
 
| GroupName
 
| GroupName
Line 101: Line 101:
 
| not null
 
| not null
 
|  
 
|  
| Name of the group to which the department belongs.
+
| Name of the group to which the department belongs.<br />
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 107: Line 107:
 
| not null
 
| not null
 
| (GETDATE())
 
| (GETDATE())
| Date and time the record was last updated.
+
| Date and time the record was last updated.<br />
 
|}
 
|}
  

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