HumanResources.Department Table

Information

NameDepartment
SchemaHumanResources
Row Count0
Data Size 
Index Size 
Reserved Size 
Unused Size 
Created29.3.2010. 21:58:18
Modified29.3.2010. 21:58:54

Extended Properties

NameTypeProperty NameValue
DepartmentTABLEMS_DescriptionLookup table containing the departments within the Adventure Works Cycles company.

Columns

PKKeyIdentityNameData TypeAllow NullsCollationReferencesDefaultComputedCompute Expression
   DepartmentIDsmallint   
 
 
 
   Namenvarchar(50) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   GroupNamenvarchar(50) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   ModifiedDatedatetime   
(getdate())
 
 

Indexes

NameTypePrimaryUniqueColumns
PK_Department_DepartmentIDClustered  DepartmentID
AK_Department_NameNonClustered  Name

SQL Script

CREATE TABLE [HumanResources].[Department] (
    [DepartmentID] smallint NOT NULL IDENTITY,
    [Name] nvarchar(50) NOT NULL,
    [GroupName] nvarchar(50) NOT NULL,
    [ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE UNIQUE INDEX [AK_Department_Name] on [HumanResources].[Department]([Name]);