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

From dbscript Online Help
Jump to: navigation, search
Line 2: Line 2:
  
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
|-
+
|- valign="top"
 
| '''Table
 
| '''Table
 
| HumanResources.Department
 
| HumanResources.Department
Line 8: Line 8:
 
| '''Description
 
| '''Description
 
| Lookup table containing the departments within the Adventure Works Cycles company.
 
| Lookup table containing the departments within the Adventure Works Cycles company.
|-
 
 
|}
 
|}
 
  
 
=== Columns ===
 
=== Columns ===
Line 20: Line 18:
 
| '''Default
 
| '''Default
 
| '''Description
 
| '''Description
+
 
 
|- valign="top"
 
|- valign="top"
 
| DepartmentID
 
| DepartmentID
Line 52: Line 50:
 
| '''Primary Key
 
| '''Primary Key
 
| '''Columns
 
| '''Columns
|-
+
|- valign="top"
 
| PK_Department_DepartmentID
 
| PK_Department_DepartmentID
 
| DepartmentID
 
| DepartmentID
Line 63: Line 61:
 
| '''Type
 
| '''Type
 
| '''Columns
 
| '''Columns
+
 
|-
+
|- valign="top"
 
| AK_Department_Name
 
| AK_Department_Name
 
| Unique
 
| Unique
Line 76: Line 74:
 
| '''Column
 
| '''Column
 
| '''Referencing Column
 
| '''Referencing Column
+
 
|-
+
|- valign="top"
 
| [[HumanResources.EmployeeDepartmentHistory_(table)|HumanResources.EmployeeDepartmentHistory]]
 
| [[HumanResources.EmployeeDepartmentHistory_(table)|HumanResources.EmployeeDepartmentHistory]]
 
| DepartmentID
 
| DepartmentID
Line 90: Line 88:
 
| '''Referenced Object
 
| '''Referenced Object
  
|-
+
|- valign="top"
 
| Data Type
 
| Data Type
 
| Type
 
| Type
| [[dbo.Name_(type)|dbo.Name]]
+
| [[dbo.Name_(_(type))|dbo.Name]]
  
|-
+
|- valign="top"
 
| Schema
 
| Schema
 
| Schema
 
| Schema
| [[HumanResources_(schema)|HumanResources]]
+
| [[HumanResources_(_(schema))|HumanResources]]
  
 
|}
 
|}
Line 109: Line 107:
 
| '''Referencing Object
 
| '''Referencing Object
  
|-
+
|- valign="top"
 
| Select
 
| Select
 
| View
 
| View
| [[HumanResources.vEmployeeDepartment_(view)|HumanResources.vEmployeeDepartment]]
+
| [[HumanResources.vEmployeeDepartment_(_(view))|HumanResources.vEmployeeDepartment]]
  
|-
+
|- valign="top"
 
| Select
 
| Select
 
| View
 
| View
| [[HumanResources.vEmployeeDepartmentHistory_(view)|HumanResources.vEmployeeDepartmentHistory]]
+
| [[HumanResources.vEmployeeDepartmentHistory_(_(view))|HumanResources.vEmployeeDepartmentHistory]]
  
 
|}
 
|}

Revision as of 23:00, 23 June 2010

wikibot

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

Columns

Column Data Type Nullable Default Description
DepartmentID smallint not null Primary key for Department records.
Name dbo.Name not null Name of the department.
GroupName dbo.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.

Primary Key

Primary Key Columns
PK_Department_DepartmentID DepartmentID

Indexes

Index Type Columns
AK_Department_Name Unique Name

Detail Tables

Detail Table Column Referencing Column
HumanResources.EmployeeDepartmentHistory DepartmentID DepartmentID

References

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

Dependencies

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


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


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


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