Owner: | HumanResources |
Creation Date: | 04/26/2006 |
Located On: | PRIMARY |
Data Size KB: | 8 |
Index Size KB: | 24 |
Rows: | 16 |
Description: | Lookup table containing the departments within the Adventure Works Cycles company. |
Name | Data Type | Length | NULL | Default | IsIdentity | IsGUID | Description | ||
DepartmentID | smallint | 2 | Primary key for Department records. | ||||||
Name | Name | 100 | Name of the department. | ||||||
GroupName | Name | 100 | Name of the group to which the department belongs. | ||||||
ModifiedDate | datetime | 8 | (getdate()) | Date and time the record was last updated. |
Name | Seed | Increment | Not for replication | |
DepartmentID | 1 | 1 |
Index | Primary | Unique | Description | |
PK_Department_DepartmentID | Primary key (clustered) constraint | |||
AK_Department_Name | Unique nonclustered index. |
Table | Foreign Key | Primary Key or Unique Constraint | |
HumanResources.EmployeeDepartmentHistory | FK_EmployeeDepartmentHistory_Department_DepartmentID | PK_Department_DepartmentID |
Objects that [HumanResources].[Department] depends on
Object Name | Owner | Object Type | Dep Level | |
Name | dbo | User Defined type | 1 |
Objects that depend on [HumanResources].[Department]
Object Name | Owner | Object Type | Dep Level | |
EmployeeDepartmentHistory | HumanResources | Table | 1 | |
vEmployeeDepartment | HumanResources | View | 2 | |
vEmployeeDepartmentHistory | HumanResources | View | 2 |
CREATE TABLE [Department] (
[DepartmentID] [smallint] IDENTITY (1, 1) NOT NULL ,
[Name] [Name] NOT NULL ,
[GroupName] [Name] NOT NULL ,
[ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_Department_ModifiedDate] DEFAULT (getdate()),
CONSTRAINT [PK_Department_DepartmentID] PRIMARY KEY CLUSTERED
(
[DepartmentID]
) ON [PRIMARY]
) ON [PRIMARY]
GO
See Also
List of tables