HumanResources.Employee Table

Information

NameEmployee
SchemaHumanResources
Row Count290
Data Size56 KB
Index Size120 KB
Reserved Size176 KB
Unused Size0 KB
Created14.10.2005 1:58:32
Modified14.10.2005 1:59:52

Extended Properties

NameTypeProperty NameValue
EmployeeTABLEMS_DescriptionEmployee information such as salary, department, and title.

Columns

PKKeyIdentityNameData TypeAllow NullsCollationReferencesDefaultComputedCompute Expression
   EmployeeIDint   
 
 
 
   NationalIDNumbernvarchar(30) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   ContactIDint  Person.Contact.ContactID
 
 
 
   LoginIDnvarchar(512) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   ManagerIDint  HumanResources.Employee.EmployeeID
 
 
 
   Titlenvarchar(100) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   BirthDatedatetime   
 
 
 
   MaritalStatusnchar(2) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   Gendernchar(2) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   HireDatedatetime   
 
 
 
   SalariedFlagbit(1)   
((1))
 
 
   VacationHourssmallint   
((0))
 
 
   SickLeaveHourssmallint   
((0))
 
 
   CurrentFlagbit(1)   
((1))
 
 
   rowguiduniqueidentifier   
(newid())
 
 
   ModifiedDatedatetime   
(getdate())
 
 

Indexes

NameTypePrimaryUniqueColumns
PK_Employee_EmployeeIDClustered  EmployeeID
AK_Employee_LoginIDNonClustered  LoginID
AK_Employee_NationalIDNumberNonClustered  NationalIDNumber
AK_Employee_rowguidNonClustered  rowguid
IX_Employee_ManagerIDNonClustered  ManagerID

Check Constraints

NameColumnEnabledTrustedExpression
CK_Employee_BirthDateBirthDate  ([BirthDate]>='1930-01-01' AND [BirthDate]<=dateadd(year,(-18),getdate()))
CK_Employee_MaritalStatusMaritalStatus  (upper([MaritalStatus])='S' OR upper([MaritalStatus])='M')
CK_Employee_GenderGender  (upper([Gender])='F' OR upper([Gender])='M')
CK_Employee_HireDateHireDate  ([HireDate]>='1996-07-01' AND [HireDate]<=dateadd(day,(1),getdate()))
CK_Employee_VacationHoursVacationHours  ([VacationHours]>=(-40) AND [VacationHours]<=(240))
CK_Employee_SickLeaveHoursSickLeaveHours  ([SickLeaveHours]>=(0) AND [SickLeaveHours]<=(120))

Foreign Key Constraints

NameTypeReferenced Table
FK_Employee_Contact_ContactIDForeign keyPerson.Contact
FK_Employee_Employee_ManagerIDForeign keyHumanResources.Employee

Triggers

NameActivates onInstead OfFor ReplicationEnabledCreatedModified
HumanResources.dEmployeeDELETE   14.10.2005 1:59:5214.10.2005 1:59:52
HumanResources.uEmployeeUPDATE   14.10.2005 1:59:5214.10.2005 1:59:52