Databases > AdventureWorks2019 > Tables > HumanResources.Shift

AdventureWorks2019

HumanResources.Shift

//
Work shift lookup table.

Created: Modified:

Columns

  • //
    ${escapify(column.description)}
    ShiftID
    [tinyint] IDENTITY (1,1) NOT NULL
  • //
    ${escapify(column.description)}
    Name
    [Name] NOT NULL
    //
    USER-DEFINED DATA TYPE
    [nvarchar](50) NULL
  • //
    ${escapify(column.description)}
    StartTime
    [time](5) NOT NULL
  • //
    ${escapify(column.description)}
    EndTime
    [time](5) NOT NULL
  • //
    ${escapify(column.description)}
    ModifiedDate
    [datetime] NOT NULL DEFAULT (getdate())

Indexes

  • //
    Clustered index created by a primary key constraint.
    PK_Shift_ShiftID
    UNIQUE CLUSTERED
    ShiftID
  • //
    Unique nonclustered index.
    AK_Shift_Name
    UNIQUE NONCLUSTERED
    Name
  • //
    Unique nonclustered index.
    AK_Shift_StartTime_EndTime
    UNIQUE NONCLUSTERED
    StartTime , EndTime

Sample Data

ShiftID
Name
StartTime
EndTime
ModifiedDate
1
Day
Thu Jan 01 1970 02:00:00 GMT-0500 (Eastern Standard Time)
Thu Jan 01 1970 10:00:00 GMT-0500 (Eastern Standard Time)
2
Evening
Thu Jan 01 1970 10:00:00 GMT-0500 (Eastern Standard Time)
Thu Jan 01 1970 18:00:00 GMT-0500 (Eastern Standard Time)
3
Night
Thu Jan 01 1970 18:00:00 GMT-0500 (Eastern Standard Time)
Thu Jan 01 1970 02:00:00 GMT-0500 (Eastern Standard Time)