Sie sind auf Seite 1von 37

Workforce Scheduler

Database Views
Reference Guide

An administrators guide to all of the scheduling


views in the Workforce Central database.

Kronos Workforce Central Suite


Version 6.3

The information in this document is subject to change without notice and should not be construed as a commitment
by Kronos Incorporated. Kronos Incorporated assumes no responsibility for any errors that may appear in this
manual. This document or any part thereof may not be reproduced in any form without the written permission of
Kronos Incorporated. All rights reserved. Copyright 2011.
Altitude, Altitude Dream, Cambridge Clock, CardSaver, Datakeeper, Datakeeper Central, eForce, Gatekeeper,
Gatekeeper Central, Imagekeeper, Jobkeeper Central, Keep.Trac, Kronos, Kronos Touch ID, the Kronos logo, My
Genies, PeoplePlanner, PeoplePlanner & Design, Schedule Manager & Design, ShiftLogic, ShopTrac, ShopTrac
Pro, StarComm, StarPort, StarSaver, StarTimer, TeleTime, Timekeeper, Timekeeper Central, TimeMaker, Unicru,
Visionware, Workforce Accruals, Workforce Central, Workforce Decisions, Workforce Express, Workforce Genie,
and Workforce TeleTime are registered trademarks of Kronos Incorporated or a related company. Altitude MPP,
Altitude MPPXpress, Altitude Pairing, Altitude PBS, Comm.Mgr, CommLink, DKC/Datalink, eDiagnostics, Experts at
Improving the Performance of People and Business, FasTrack, Hireport, HR and Payroll Answerforce, HyperFind,
Kronos 4500 Touch ID, Kronos 4500, Kronos 4510, Kronos Acquisition, Kronos e-Central, Kronos InTouch, Kronos
KnowledgePass, Kronos TechKnowledgy, KronosWorks, KVC OnDemand, Labor Plus, Momentum Essentials,
Momentum Online, Momentum, MPPXpress, Overall Labor Effectiveness, Schedule Assistant, Smart Scheduler,
Smart View, Start Quality, Start WIP, Starter Series, StartLabor, TeleStaff, Timekeeper Decisions, Timekeeper Web,
VisionPlus, Winstar Elite, WIP Plus, Workforce Absence Manager, Workforce Acquisition, Workforce Activities,
Workforce Analytics, Workforce Attendance, Workforce Central Portal, Workforce Connect, Workforce Employee,
Workforce ESP, Workforce Forecast Manager, Workforce HR, Workforce Leave, Workforce Manager, Workforce
MobileTime, Workforce Operations Planner, Workforce Payroll, Workforce Record Manager, Workforce Recruiter,
Workforce Scheduler, Workforce Smart Scheduler, Workforce Tax Filing, Workforce Timekeeper, Workforce View,
and Workforce Worksheet are trademarks of Kronos Incorporated or a related company.
The source code for Equinox is available for free download at www.eclipse.org.
All other trademarks or registered trademarks used herein are the property of their respective owners and are used
for identification purposes only.
When using and applying the information generated by Kronos products, customers should ensure that they comply
with the applicable requirements of federal and state law, such as the Fair Labor Standards Act. Nothing in this
Guide shall be construed as an assurance or guaranty that Kronos products comply with any such laws.
Published by Kronos Incorporated
297 Billerica Road, Chelmsford, Massachusetts 01824-4119 USA
Phone: 978-250-9800, Fax: 978-367-5900
Kronos Incorporated Global Support: 1-800-394-HELP (1-800-394-4357)
For links to information about international subsidiaries of Kronos Incorporated, go to
http://www.kronos.com

Document Revision History


Document Revision

Product Version

Release Date

6.3

December 2011

Contents

Chapter 1: Understanding the Suite System Views


Introducing the Suite Views .......................................................................... 6
Commonly Used Terms ................................................................................. 8
Chapter 2: Scheduling Views
V_SCHEDWCOVERAGE .......................................................................... 10
VP_ASSIGNSCHEDULE ........................................................................... 14
VP_DAILYSCHEDULE ............................................................................. 19
VP_PAYCODEEDITSCHD ....................................................................... 22
VP_SCHEDULE ......................................................................................... 26
VP_SHIFTCOMMENTS ............................................................................ 33

Chapter 1

Understanding the Suite System Views

This chapter describes the suite system database views. Using views simplifies the
process of retrieving database records for display or reports.
This chapter contains the following sections:

Introducing the Suite Views on page 6

Commonly Used Terms on page 8

Chapter 1

Understanding the Suite System Views

Introducing the Suite Views


The core of the suite system is a sizable relational database that contains
numerous tables that store data. In the suite database, the tables contain the
records and calculations that you use to manage and extract employee data. With
the development of suite views, the job of extracting the data is simplified.
A view is a virtual table that combines the information from one or more tables in
an easy-to-use way. A view displays frequently requested information and hides
the unnecessary details. The view provides information about a functional area,
such as absences, employee demographic data, and accruals.

About Views
The advantage of using a view is that a view masks the complexities of the
database. The view makes multiple complex tables look like a single table. The
columns of a view originate in multiple tables of the suite database. The columns
are logically grouped so all the information you typically need about a functional
area is available from a single view or from a join of two related views.
A view does not exist in the database as a physical object. Instead, the view
columns map to a set of tables where real data is stored. If the underlying details
of a table column change, the view continues to provide the correct data based on
the columns that are mapped to the view.
At the execution of an SQL SELECT statement on the view or a request to create
a standard suite report, the view extracts data from one or more of the tables
within its definition.
Note: The INSERT, UPDATE, and DELETE SQL statements are invalid for suite
views.

Introducing the Suite Views

Performance Considerations
To maintain the advantage of working with a single view instead of multiple
tables, fine-tune the SQL queries as much as possible.
Records are extracted using SELECT statements, which pinpoint only the data
that you want to retrieve. Follow these performance rules:

Use the WHERE clause in the SELECT statement.


The WHERE clause qualifies which rows to read, eliminating a complete read
of a table. Using the WHERE clause filters the rows that are returned by
specifying values for columns.

Avoid using additional SQL functions (such as MIN, MAX, SUM); they
require more reads and might impact performance.

In a SELECT statement, specify only the columns that you need for the data
that you want to extract. Restricting the number of column reads enhances
system performance.

Never specify the asterisk (*) in a SELECT statement.

Specify column data values in the SQL WHERE clause for all performance
columns.

Views can have relationships to other views through one or more columns.
Based on these columns, one or more views can be joined in a single SQL
statement. The number of columns from the two tables must be equal.

Database Views Reference Guide

Chapter 1

Understanding the Suite System Views

Commonly Used Terms


data type

The format of the data contained in a column. For more information about data
types, refer to the documentation for your relational database management
system.
null constraint

The value of a view indicates whether a column can contain null values or must
contain a value. You can find the value for each view in Chapter 2, Scheduling
Views in the Column Data sections.
unique identifier

One or more columns uniquely identify each row in a view. When data values are
provided in an SQL WHERE clause, only a single row is returned from the view
for all columns that are specified in the unique identifier.

Chapter 2

Scheduling Views

This chapter provides details of the scheduling database views.


Caution: This information is provided to help you extract data from the database.
Never alter the structure of the database or modify the data contained in the
database tables. By altering the database in any way, you risk database failure.
Product suite applications validate data before entering it into the database. If you
insert data directly into the database, the validation cannot occur, and you may be
inserting data values that the suite applications cannot interpret. The Import
tables, which are described in the Table Format Import Programmers Guide for
the timekeeping product, are the only tables into which you can enter data directly.
This following information is provided for each view:

View name and description

Column data

Column name

Data type and length

Null constraint

Relationships to other views

Definitions and details of each column

Chapter 2

Scheduling Views

V_SCHEDWCOVERAGE
The V_SCHEDWCOVERAGE view stores information that is needed for the
Location Schedule with Coverage report.

10

Column

Oracle

SQL Server

Null Constraint

CALENDARDATE

Date

DateTime

Null

PERSONFULLNM

nVarChar2(64)

nVarChar(64)

Null

PRIMORGNMPATHTXT

nVarChar2(1000)

nVarChar(1000)

Null

SPANID

Number(10)

Int

Null

SPANNM

nVarChar2(50)

nVarChar(50)

Null

SPANSTART

Date

DateTime

Null

SPANEND

Date

DateTime

Null

SPANTYPEID

Number(10)

Int

Null

EMPLOYEEID

Number(10)

Int

Null

PRIMORGJOBID

Number(10)

Int

Null

ORGJOBIDSID

Number(10)

Int

Null

JOBORDER

Number(10)

Int

Null

SHIFTID

Number(10)

Int

Null

SHIFTDTLPAYCODENM nVarChar2(50)

nVarChar(50)

Null

SHIFTLABELNM

nVarChar2(30)

nVarChar(30)

Null

GROUPORGNMPATH

nVarChar(500)

nVarChar(500)

Null

ISPARTIALSHIFTSW

Number(1)

Int

Null

ISSHIFTHASXFERSW

Number(1)

Int

Null

SHIFTSTARTDTM

Date

DateTime

Null

SHIFTENDDTM

Date

DateTime

Null

SHIFTMAXBYDATENUM Number(10)

Int

Null

FTE

Number(10)

Int

Null

PAYCODEID

Number(10)

Int

Null

CONTRIBUTES

Number(10)

Int

Null

V_SCHEDWCOVERAGE

Column

Oracle

SQL Server

Null Constraint

SHIFTNUM

Number(10)

Int

Null

PLUSPOSITION

Number(10)

Int

Null

XPOSITION

Number(10)

Int

Null

MONTHGROUP

Number(10)

Int

Null

Column Definitions
CALENDARDATE The Calendar Date column contains the date of the daily
schedule.
PERSONFULLNM The Person Full Name column contains the full name of
the user that posted the schedule, which includes last name, first name, and middle
initial.
PRIMORGNMPATHTXT The Primary Organization Path Text column
contains a concatenation of the organization names (delimited by slashes) of the
ancestor organizations up to the root of the Organizational Map hierarchy for this
organizational job.
SPANID The Span ID column contains the identity of the shift or schedule
zone.
SPANNM The Span Name column contains the name of the shift or schedule
zone.
SPANSTART The Shift Start column contains the start time of the shift or
schedule zone.
SPANEND The Shift End column contains the end time of the shift or
schedule zone
SPANTYPEID The Span Type ID column contains a number that identifies
the type of span, such as shift or schedule zone. This column is a foreign key that
refers to the SPANTYPE table.
EMPLOYEEID The Employee ID column identifies the employee whose
daily schedule it is. This column is a foreign key to the EMPLOYEEID column in
the JAIDS table.

Database Views Reference Guide

11

Chapter 2

Scheduling Views

PRIMORGJOBID The Primary Organization Job ID column identifies which


primary organization job that the employee is assigned to.
ORGJOBIDSID The Organization Job IDs ID column identifies which
organizational job unit that the employee is assigned to.
JOBORDER The Job Order column identifies the display order of the job.
SHIFTID The Shift column contains a system-generated unique number that
identifies each shift.
SHIFTDTLPAYCODENM The Shift Detail Labor Pay Code Name column
contains the name of the pay code for this shift detail.
SHIFTLABELNM The Shift Label Name column contains the label name of
the shift.
GROUPORGNMPATH The Group on Organization Path column defines the
text of the organization path on which to group the data.
ISPARTIALSHIFTSW The IS Partial Shift Indicator column indicates
whether the shift is a partial shift.
ISSHIFTHASXFERSW The IS Shift Has Transfer Indicator column indicates
whether the shift is a transfer shift.
SHIFTSTARTDTM The Shift Start Date Time column contains the start date
for the shift.
SHIFTENDDTM The Shift End Date Time column contains the end date for
the shift.
SHIFTMAXBYDATENUM The Shift Maximum By Date Number column
contains the maximum number of shifts for a day for formatting purposes.
FTE The Full-Time-Equivalency column indicates whether the employee is a
full-time employee.
PAYCODEID The Pay Code ID column identifies the pay codes.
CONTRIBUTES The RETRIEVEBYOPENSSW column in the
RDAILSCHEDDTL table is adapted to determine whether a shift contributes to
the zone. This column is not implemented in the report.

12

V_SCHEDWCOVERAGE

SHIFTNUM The RETRIEVEBYOPENGSW column in the


RDAILSCHEDDTL table is adapted to determine the sort order of the employee
shifts during a day.
PLUSPOSITION The RETRIEVEBYDSTAFFSW column in the
RDAILSCHEDDTL table is adapted to determine the position to display the plus
sign. The plus sign (+) indicates whether the employee works
XPOSITION The X Position Number column is adapted from the
RETRIEVEBYSJSSW column in the RDAILSCHEDDTL table. It defines on
which side of a shift to display the letter x. The letter x indicates transferred
employees.
MONTHGROUP The RETRIEVEBYSJGSW column in the
RDAILSCHEDDTL table is adapted to be the group in the value MonthGroup.
This value determines which shifts to display in the first, second, and later 4-week
periods.

Database Views Reference Guide

13

Chapter 2

Scheduling Views

VP_ASSIGNSCHEDULE
The Assigned Schedule view stores information about shift and shift-segment
details that are assigned to an employee.

14

Column

Oracle

SQL Server

Null Constraint

SHIFTSTARTDATE

Date

DateTime

Not Null

SHIFTENDDATE

Date

DateTime

Not Null

SHIFTSTARTTIME

Date

DateTime

Null

SHIFTENDTIME

Date

DateTime

Null

SHIFTTYPE

VarChar2(30)

nVarChar(30)

Not Null

SHIFTSEGMENTTYPE

VarChar2(30)

nVarChar(30)

Null

SHIFTCODENAME

VarChar2(30)

nVarChar(30)

Null

SHIFTCODECOMMENT

VarChar2(250)

nVarChar(250)

Null

GRPSCHEDULENAME

VarChar2(50)

nVarChar(50)

Null

WORKRULENAME

VarChar2(50)

nVarChar(50)

Null

LABORACCTNAME

VarChar2(230)

nVarChar(230)

Null

LABORLEVELNAME1

VarChar2(50)

nVarChar(50)

Null

LABORLEVELNAME2

VarChar2(50)

nVarChar(50)

Null

LABORLEVELNAME3

VarChar2(50)

nVarChar(50)

Null

LABORLEVELNAME4

VarChar2(50)

nVarChar(50)

Null

LABORLEVELNAME5

VarChar2(50)

nVarChar(50)

Null

LABORLEVELNAME6

VarChar2(50)

nVarChar(50)

Null

LABORLEVELNAME7

VarChar2(50)

nVarChar(50)

Null

PERSONFULLNAME

VarChar2(64)

nVarChar(64)

Null

PERSONNUM

VarChar2(15)

nVarChar(15)

Not Null

FTSTDHRSQTY

Number(16,6)

Decimal(16,6)

Null

CURRPAYPERIODSTART Date

DateTime

Null

CURRPAYPERIODEND

Date

DateTime

Null

PREVPAYPERIODSTART Date

DateTime

Null

VP_ASSIGNSCHEDULE

Column

Oracle

SQL Server

Null Constraint

PREVPAYPERIODEND

Date

DateTime

Null

NEXTPAYPERIODSTART Date

DateTime

Null

NEXTPAYPERIODEND

Date

DateTime

Null

SHIFTSEGMENTID

Number(10)

Int

Null

SHIFTID

Number(10)

Int

Not Null

SHIFTTYPEID

Number(10)

Int

Not Null

PAYCODEID

Number(10)

Int

Null

DATASOURCEID

Number(10)

Int

Null

LABORACCTID

Number(10)

Int

Null

EMPLOYEEID

Number(10)

Int

Not Null

PERSONID

Number(10)

Int

Not Null

ORGPATHTXT

VarChar2(1000) nVarChar(1000) Not Null

VP_ASSIGNSCHEDULE Column Related View

Related View Column

DATASOURCEID

VP_DATASOURCE

DATASOURCEID

EMPLOYEEID

VP_EMPLOYEEV42 EMPLOYEEID

EMPLOYEEID

VP_SCHEDULE

EMPLOYEEID

GRPSCHEDULENAME

VP_SCHEDULE

GRPSCHEDULENAME

SHIFTID

VP_SCHEDULE

SHIFTID

SHIFTSEGMENTID

VP_SCHEDULE

SHIFTSEGMENTID

Column Definitions
SHIFTSTARTDATE The Shift Start Date column contains the date when the
schedule pattern begins.
SHIFTENDDATE This Shift End Date column contains the date when the
schedule patterns ends.
SHIFTSTARTTIME The Shift Start Time column contains the time when the
shift segment is applied to the shift.

Database Views Reference Guide

15

Chapter 2

Scheduling Views

SHIFTENDTIME The Shift End Time column contains the last time that the
shift segment is applied to the shift.
SHIFTTYPE The Shift Type column contains the type of shift, such as daily,
weekly, or monthly.
SHIFTSEGMENTTYPE The Shift Segment Type column contains the type
of shift segment, such as break or meal.
SHIFTCODENAME The Shift Code Name column contains the name of the
shift code.
SHIFTCODECOMMENT The Shift Code Comment column contains any
comments that are added to the shift code.
GRPSCHEDULENAME The Group Schedule Name column contains the
name of the group schedule that is applied to the shift or shift segment.
WORKRULENAME The Work Rule Name column contains the name of the
work rule that is applied to the shift or shift segment.
LABORACCTNAME The Labor Account Name column contains the name
of the labor account to which the schedule is assigned. The name is a
concatenation of the existing labor levels, up to seven.
LABORLEVELNAME1 The Labor Level Name 1 column contains the name
of the first labor level.
LABORLEVELNAME2 The Labor Level Name 2 column contains the name
of the second labor level.
LABORLEVELNAME3 The Labor Level Name 3 column contains the name
of the third labor level.
LABORLEVELNAME4 The Labor Level Name 4 column contains the name
of the fourth labor level.
LABORLEVELNAME5 The Labor Level Name 5 column contains the name
of the fifth labor level.
LABORLEVELNAME6 The Labor Level Name 6 column contains the name
of the sixth labor level.
LABORLEVELNAME7 The Labor Level Name 7 column contains the name
of the seventh labor level.

16

VP_ASSIGNSCHEDULE

PERSONFULLNAME The Person Full Name column contains the person's


full name: last name, first name, and middle initial.
PERSONNUM The Person Number column contains the unique identification
number that is assigned to the person. The person number is stored as a character
string. Typically, only numeric values are stored in this attribute; however, you
can include one or more alphabetic characters.
FTSTDHRSQTY The Full Time Standard Hours Quantity column contains
the standard number of hours that a full-time employee worked.
CURRPAYPERIODSTART The Current Pay Period Start column contains
the date that the current pay period started.
CURRPAYPERIODEND The Current Pay Period End column contains the
date that the current pay period ends.
PREVPAYPERIODSTART The Previous Pay Period Start column contains
the date that the previous pay period started.
PREVPAYPERIODEND The Previous Pay Period End column contains the
date that the previous pay period ended.
NEXTPAYPERIODSTART The Next Pay Period Start column contains the
date that the next pay period starts.
NEXTPAYPERIODEND The Next Pay Period End column contains the date
that the next pay period ends.
SHIFTSEGMENTID The Shift Segment ID column uniquely identifies the
shift segment.
SHIFTID The Shift ID column uniquely identifies the shift.
SHIFTTYPEID The Shift Type ID column uniquely identifies the shift type.
PAYCODEID The Pay Code ID column contains the pay code to which the
edit applies.
DATASOURCEID The Data Source ID column identifies the data source of
the pay code edit.
LABORACCTID The Labor Account ID column identifies the employee's
labor account.

Database Views Reference Guide

17

Chapter 2

Scheduling Views

EMPLOYEEID The Employee ID column contains a system-generated


number that uniquely identifies the employee.
PERSONID The Person ID column identifies the person to whom the badge
number is assigned.
ORGPATHTXT The Organization Path Text column contains a concatenation
of the organization names, delimited by slashes, of the ancestor organizations up
to the root of the organizational map hierarchy.

18

VP_DAILYSCHEDULE

VP_DAILYSCHEDULE
The Daily Schedule view stores information about the daily schedule for an
employee.
Column

Oracle

SQL Server

Null Constraint

EMPLOYEEID

Number(10)

Int

Not Null

SHIFTID

Number(10)

Int

Not Null

SHIFTSTARTDATE

Date

DateTime

Not Null

SHIFTSTARTTIME

Date

DateTime

Null

SHIFTENDDATE

Date

DateTime

Not Null

SHIFTENDTIME

Date

DateTime

Null

SEGMENTLABORACCTID Number(10)

Int

Null

SEGMENTWORKRULEID

Number(10)

Int

Null

SHIFTTYPE

VarChar2(30)

nVarChar(30)

Not Null

SHIFTSEGMENTTYPE

VarChar2(30)

nVarChar(30)

Null

PAYCODENAME

VarChar2(50)

nVarChar(50)

Null

PCEISMONEYAMOUNTSW Number(10)

Int

Null

PCEMONEYAMOUNT

Number(16,6)

Decimal(16,6)

Null

PCETIMEINSECONDS

Number(10)

Int

Null

PCELABORACCTID

Number(10)

Int

Null

ORGPATHTXT

VarChar2(1000)

nVarChar(1000) Not Null

VP_DAILYSCHEDULE Column Related View

Related View Column

EMPLOYEEID

EMPLOYEEID

VP_EMPLOYEEV42

Column Definitions
EMPLOYEEID The Employee ID column contains a system-generated
number that uniquely identifies the employee.
SHIFTID The Shift ID column contains the unique identification for the shift.

Database Views Reference Guide

19

Chapter 2

Scheduling Views

SHIFTSTARTDATE The Shift Start Date column contains the date when the
schedule pattern starts.
SHIFTSTARTTIME The Shift Start Time column contains the time when the
shift segment is applied to the shift.
SHIFTENDDATE The Shift End Date column contains the date when the
schedule pattern ends.
SHIFTENDTIME The Shift End Time column contains the last time the shift
segment is applied to the shift.
SEGMENTLABORACCTID The Segment Labor Account ID column
contains the name of the labor account that is associated with the segment.
SEGMENTWORKRULEID The Segment Work Rule ID column contains
the name of the work rule that is associated with the segment.
SHIFTTYPE The Shift Type column contains the type of shift; for example,
weekly or monthly.
SHIFTSEGMENTTYPE The Shift Segment type contains the type of shift
segment.
PAYCODENAME The Pay Code Name column identifies the name of the pay
code.
PCEISMONEYAMOUNTSW The Pay Code Edit Is Money Amount Switch
column indicates whether the pay code edit is money or time. The possible values
are:
0 = The pay code contains time.
1 = The pay code contains money.
PCEMONEYAMOUNT The Pay Code Edit Money Amount column contains
the amount of money when the pay code edit is a money amount.
PCETIMEINSECONDS The Pay Code Edit Time In Seconds column
contains the time amount of the pay code edit, in seconds.
PCELABORACCTID The Pay Code Edit Labor Account ID column
identifies the labor account to which the pay code edit is made.
DELETEDSW The Deleted Switch column indicates deleted shift
assignments.

20

VP_DAILYSCHEDULE

ORGPATHTXT The Organization Path Text column contains a concatenation


of the organization names, delimited by slashes, of the ancestor organizations up
to the root of the organizational map hierarchy.

Database Views Reference Guide

21

Chapter 2

Scheduling Views

VP_PAYCODEEDITSCHD
The Pay Code Scheduled Edits view stores information about scheduled pay code
edits.

22

Column

Oracle

SQL Server

Null Constraint

SHIFTSTARTDATE

Date

DateTime

Not Null

SHIFTENDDATE

Date

DateTime

Not Null

GRPSCHEDULENAME

VarChar2(50)

nVarChar(50)

Null

PERSONFULLNAME

VarChar2(64)

nVarChar(64)

Null

PERSONNUM

VarChar2(15)

nVarChar(15)

Not Null

CURRPAYPERIODSTART

Date

DateTime

Null

CURRPAYPERIODEND

Date

DateTime

Null

PREVPAYPERIODSTART

Date

DateTime

Null

PREVPAYPERIODEND

Date

DateTime

Null

NEXTPAYPERIODSTART

Date

DateTime

Null

NEXTPAYPERIODEND

Date

DateTime

Null

PAYCODENAME

VarChar2(50)

nVarChar(50)

Null

PCEISMONEYAMOUNTSW

Number(10)

Int

Null

PCEMONEYAMOUNT

Number(16,6)

Decimal(16,6)

Null

PCETIMEINSECONDS

Number(12)

Int

Null

PCELABORACCTNAME

VarChar2(230)

nVarChar(230)

Null

PCELABORLEVELNAME1

VarChar2(50)

nVarChar(50)

Null

PCELABORLEVELNAME2

VarChar2(50)

nVarChar(50)

Null

PCELABORLEVELNAME3

VarChar2(50)

nVarChar(50)

Null

PCELABORLEVELNAME4

VarChar2(50)

nVarChar(50)

Null

PCELABORLEVELNAME5

VarChar2(50)

nVarChar(50)

Null

PCELABORLEVELNAME6

VarChar2(50)

nVarChar(50)

Null

PCELABORLEVELNAME7

VarChar2(50)

nVarChar(50)

Null

SHIFTID

Number(10)

Int

Not Null

VP_PAYCODEEDITSCHD

Column

Oracle

SQL Server

Null Constraint

PAYCODEID

Number(10)

Int

Null

DATASOURCEID

Number(10)

Int

Null

PCELABORACCTID

Number(10)

Int

Null

PERSONID

Number(10)

Int

Not Null

EMPLOYEEID

Number(10)

Int

Not Null

Column

Related View

Related View Column

EMPLOYEEID

VP_EMPLOYEEV42

EMPLOYEEID

EMPLOYEEID

VP_SCHEDULE

EMPLOYEEID

GRPSCHEDULENAME VP_SCHEDULE

GRPSCHEDULENAME

SHIFTID

SHIFTID

VP_SCHEDULE

Column Definitions
SHIFTSTARTDATE The Shift Start Date column contains the date when the
shift starts.
SHIFTENDDATE The Shift End Date column contains the date when the
shift ends.
GRPSCHEDULENAME The Group Schedule Name contains the name of
the group schedule.
PERSONFULLNAME The Person Full Name column contains the person's
full name: last name, first name, and middle initial.
PERSONNUM The Person Number column contains the unique identification
number that is assigned to the person. The person number is stored as a character
string. Typically, only numeric values are stored in this attribute; however, you
can include one or more alphabetic characters.
CURRPAYPERIODSTART The Current Pay Period Start column contains
the date that the current pay period started.
CURRPAYPERIODEND The Current Pay Period End column contains the
date that the current pay period ends.

Database Views Reference Guide

23

Chapter 2

Scheduling Views

PREVPAYPERIODSTART The Previous Pay Period Start column contains


the date that the previous pay period started.
PREVPAYPERIODEND The Previous Pay Period End column contains the
date that the previous pay period ended.
NEXTPAYPERIODSTART The Next Pay Period Start column contains the
date that the next pay period starts.
NEXTPAYPERIODEND The Next Pay Period End column contains the date
that the next pay period ends.
PAYCODENAME The Pay Code Name column identifies the name of the pay
code.
PCEISMONEYAMOUNTSW The Is Money Amount Switch column
indicates whether this pay code contains money or time. The possible values are:
0 = The pay code contains time.
1 = The pay code contains money.
PCEMONEYAMOUNT This column identifies the money amount of the pay
code edit.
PCETIMEINSECONDS The Pay Code Edit Time In Seconds column
contains the total calculated time of the pay code edit in seconds.
PCELABORACCTNAME The Pay Code Edit Labor Account Name column
contains the name of the labor account to which the pay code is applied. This
column is a concatenation of the existing labor levels, up to seven levels.
PCELABORLEVELNAME1 The Pay Code Edit Labor Level Name 1
column contains the name of the first labor-level account to which the pay code
edit is applied.
PCELABORLEVELNAME2 The Pay Code Edit Labor Level Name 2
column contains the name of the second labor-level account to which the pay code
edit is applied.
PCELABORLEVELNAME3 The Pay Code Edit Labor Level Name 3
column contains the name of the third labor-level account to which the pay code
edit is applied.

24

VP_PAYCODEEDITSCHD

PCELABORLEVELNAME4 The Pay Code Edit Labor Level Name 4


column contains the name of the fourth labor-level account to which the pay code
edit is applied.
PCELABORLEVELNAME5 The Pay Code Edit Labor Level Name 5
column contains the name of the fifth labor-level account to which the pay code
edit is applied.
PCELABORLEVELNAME6 The Pay Code Edit Labor Level Name 6
column contains the name of the sixth labor-level account to which the pay code
edit is applied.
PCELABORLEVELNAME7 The Pay Code Edit Labor Level Name 7
column contains the name of the seventh labor-level account to which the edit is
applied.
SHIFTID The Shift ID column contains the unique identification number for
the shift.
PAYCODEID The Pay Code ID column contains the pay code to which the
edit applies.
DATASOURCEID The Data Source ID column identifies the data source of
the pay code edit.
PCELABORACCTID The Pay Code Edit Labor Account ID column
identifies the labor account to which the pay code edit is made.
PERSONID The Person ID column identifies the person to whom the badge
number is assigned.
EMPLOYEEID The Employee ID column contains a system-generated
number that uniquely identifies the employee.

Database Views Reference Guide

25

Chapter 2

Scheduling Views

VP_SCHEDULE
The Schedule view stores information about the assigned schedule, pay code edit
schedule, and unassigned group schedule.

26

Column

Oracle

SQL Server

Null Constraint

HOMELABORACCTNAME

VarChar2(230)

nVarChar(230)

Null

HOMELABORLEVELNAME1 VarChar2(50)

nVarChar(50)

Null

HOMELABORLEVELNAME2 VarChar2(50)

nVarChar(50)

Null

HOMELABORLEVELNAME3 VarChar2(50)

nVarChar(50)

Null

HOMELABORLEVELNAME4 VarChar2(50)

nVarChar(50)

Null

HOMELABORLEVELNAME5 VarChar2(50)

nVarChar(50)

Null

HOMELABORLEVELNAME6 VarChar2(50)

nVarChar(50)

Null

HOMELABORLEVELNAME7 VarChar2(50)

nVarChar(50)

Null

SHIFTSTARTDATE

Date

DateTime

Not Null

SHIFTENDDATE

Date

DateTime

Not Null

SHIFTSTARTTIME

Date

DateTime

Null

SHIFTENDTIME

Date

DateTime

Null

SHIFTTYPE

VarChar2(30)

nVarChar(30)

Null

SHIFTSEGMENTTYPE

VarChar2(30)

nVarChar(30)

Null

WORKRULENAME

VarChar2(50)

nVarChar(50)

Null

LABORACCTNAME

VarChar2(230)

nVarChar(230)

Null

LABORLEVELNAME1

VarChar2(50)

nVarChar(50)

Null

LABORLEVELNAME2

VarChar2(50)

nVarChar(50)

Null

LABORLEVELNAME3

VarChar2(50)

nVarChar(50)

Null

LABORLEVELNAME4

VarChar2(50)

nVarChar(50)

Null

LABORLEVELNAME5

VarChar2(50)

nVarChar(50)

Null

LABORLEVELNAME6

VarChar2(50)

nVarChar(50)

Null

LABORLEVELNAME7

VarChar2(50)

nVarChar(50)

Null

PERSONFULLNAME

VarChar2(64)

nVarChar(64)

Null

VP_SCHEDULE

Column

Oracle

SQL Server

Null Constraint

PERSONNUM

VarChar2(15)

nVarChar(15)

Not Null

FTSTDHRSQTY

Number(16,6)

Decimal(16,6)

Null

CURRPAYPERIODSTART

Date

DateTime

Null

CURRPAYPERIODEND

Date

DateTime

Null

PREVPAYPERIODSTART

Date

DateTime

Null

PREVPAYPERIODEND

Date

DateTime

Null

NEXTPAYPERIODSTART

Date

DateTime

Null

NEXTPAYPERIODEND

Date

DateTime

Null

PAYCODENAME

VarChar2(50)

nVarChar(50)

Null

PCEISMONEYAMOUNTSW

Number(10)

Int

Null

PCEMONEYAMOUNT

Number(16,6)

Decimal(16,6)

Null

PCETIMEINSECONDS

Number(10)

Int

Null

PCELABORACCTNAME

VarChar2(230)

nVarChar(230)

Null

PCELABORLEVELNAME1

VarChar2(50)

nVarChar(50)

Null

PCELABORLEVELNAME2

VarChar2(50)

nVarChar(50)

Null

PCELABORLEVELNAME3

VarChar2(50)

nVarChar(50)

Null

PCELABORLEVELNAME4

VarChar2(50)

nVarChar(50)

Null

PCELABORLEVELNAME5

VarChar2(50)

nVarChar(50)

Null

PCELABORLEVELNAME6

VarChar2(50)

nVarChar(50)

Null

PCELABORLEVELNAME7

VarChar2(50)

nVarChar(50)

Null

SHIFTID

Number(10)

Int

Not Null

PAYCODEID

Number(10)

Int

Null

LABORACCTID

Number(10)

Int

Null

PCELABORACCTID

Number(10)

Int

Null

EMPLOYEEID

Number(10)

Int

Not Null

PERSONID

Number(10)

Int

Not Null

ORGPATHTXT

VarChar2(1000) nVarChar(1000) Not Null

Database Views Reference Guide

27

Chapter 2

Scheduling Views

VP_SCHEDULE Column Related View

Related View Column

DATASOURCEDID

VP_DATASOURCE

DATASOURCEDID

EMPLOYEEID

VP_ASSIGNSCHEDULE

EMPLOYEEID

EMPLOYEEID

VP_EMPLOYEEV42

EMPLOYEEID

EMPLOYEEID

VP_SHIFTCOMMENTS

EMPLOYEEID

GRPSCHEDULENAME

VP_ASSIGNSCHEDULE

GRPSCHEDULENAME

GRPSCHEDULENAME

VP_PAYCODEEDITSCHD GRPSCHEDULENAME

SHIFTID

VP_ASSIGNSCHEDULE

SHIFTID

VP_PAYCODEEDITSCHD SHIFTID

SHIFTID

VP_SHIFTCOMMENTS

SHIFTID

SHIFTSEGMENTID

VP_ASSIGNSCHEDULE

SHIFTSEGMENTID

SHIFTID

Column Definitions
HOMELABORACCTNAME The Home Labor Account Name column
contains the name of the home labor account in this schedule.
HOMELABORLEVELNAME1 The Home Labor Level Name 1 column
contains the name of the first home labor level in the schedule.
HOMELABORLEVELNAME2 The Home Labor Level Name 2 column
contains the name of the second home labor level in the schedule.
HOMELABORLEVELNAME3 The Home Labor Level Name 3 column
contains the name of the third home labor level in the schedule.
HOMELABORLEVELNAME4 The Home Labor Level Name 4 column
contains the name of the fourth home labor level in the schedule.
HOMELABORLEVELNAME5 The Home Labor Level Name 5 column
contains the name of the fifth home labor level in the schedule.
HOMELABORLEVELNAME6 The Home Labor Level Name 6 column
contains the name of the sixth home labor level in the schedule.
HOMELABORLEVELNAME7 The Home Labor Level Name 7 column
contains the name of the seventh home labor level in the schedule.

28

VP_SCHEDULE

SHIFTSTARTDATE The Shift Start Date column contains the start date for
the shift.
SHIFTENDDATE The Shift End Date column contains the end date for the
shift.
SHIFTSTARTTIME The Shift Start Time column contains the start time for
the shift.
SHIFTENDTIME The Shift End Time column contains the end time for the
shift.
SHIFTTYPE The Shift Type column contains the type of shift; for example,
weekly or monthly.
SHIFTSEGMENTTYPE The Shift Segment Type column contains the name
of the shift segment type.
WORKRULENAME The Work Rule Name column contains the name of the
work rule that is applied to the shift or shift segment.
LABORACCTNAME The Labor Account Name column contains the name
of the labor account to which the schedule is assigned. The name is a
concatenation of the existing labor levels, up to seven levels.
LABORLEVELNAME1 The Labor Level Name 1 column contains the name
of the first labor level of the labor account to which the schedule is assigned.
LABORLEVELNAME2 The Labor Level Name 2 column contains the name
of the second labor level of the labor account to which the schedule is assigned.
LABORLEVELNAME3 The Labor Level Name 3 column contains the name
of the third labor level of the labor account to which the schedule is assigned.
LABORLEVELNAME4 The Labor Level Name 4 column contains the name
of the fourth labor level of the labor account to which the schedule is assigned.
LABORLEVELNAME5 The Labor Level Name 5 column contains the name
of the fifth labor level of the labor account to which the schedule is assigned.
LABORLEVELNAME6 The Labor Level Name 6 column contains the name
of the sixth labor level of the labor account to which the schedule is assigned.
LABORLEVELNAME7 The Labor Level Name 7 column contains the name
of the seventh labor level of the labor account to which the schedule is assigned.

Database Views Reference Guide

29

Chapter 2

Scheduling Views

PERSONFULLNAME The Person Full Name column contains the person's


full name: last name, first name, and middle initial.
PERSONNUM The Person Number column contains the unique identification
number that is assigned to the person. The person number is stored as a character
string. Typically, only numeric values are stored in this attribute; however, you
can include one or more alphabetic characters.
FTSTDHRSQTY The Full Time Standard Hours Quantity column contains
the number of hours that a full-time employee worked.
CURRPAYPERIODSTART The Current Pay Period Start column contains
the date that the current pay period started.
CURRPAYPERIODEND The Current Pay Period End column contains the
date that the current pay period ends.
PREVPAYPERIODSTART The Previous Pay Period Start column contains
the date that the previous pay period started.
PREVPAYPERIODEND The Previous Pay Period End column contains the
date that the previous pay period ended.
NEXTPAYPERIODSTART The Next Pay Period Start column contains the
date that the next pay period starts.
NEXTPAYPERIODEND The Next Pay Period End column contains the date
that the next pay period ends.
PAYCODENAME The Pay Code Name column contains the name of the pay
code.
PCEISMONEYAMOUNTSW The Pay Code Edit Is Monetary Amount
Switch column indicates whether this pay code contains money or time. The
possible values are:
0 = The pay code contains time.
1 = The pay code contains money.
PCEMONEYAMOUNT The Pay Code Edit Money Amount column
identifies the pay code edit money amount.
PCETIMEINSECONDS The Pay Code Time In Seconds column contains the
pay code edit time in seconds.

30

VP_SCHEDULE

PCELABORACCTNAME The Pay Code Labor Account Name column


contains the name of the labor account to which the pay code is assigned. The
name is a concatenation of the existing labor levels, up to seven levels.
PCELABORLEVELNAME1 The Pay Code Edit Labor Level Name 1
column contains the name of the first labor level of the labor account to which the
pay code is assigned.
PCELABORLEVELNAME2 The Pay Code Edit Labor Level Name 2
column contains the name of the second labor level of the labor account to which
the pay code is assigned.
PCELABORLEVELNAME3 The Pay Code Edit Labor Level Name 3
column contains the name of the third labor level of the labor account to which the
pay code is assigned.
PCELABORLEVELNAME4 The Pay Code Edit Labor Level Name 4
column contains the name of the fourth labor level of the labor account to which
the pay code is assigned.
PCELABORLEVELNAME5 The Pay Code Edit Labor Level Name 5
column contains the name of the fifth labor level of the labor account to which the
pay code is assigned.
PCELABORLEVELNAME6 The Pay Code Edit Labor Level Name 6
column contains the name of the sixth labor level of the labor account to which the
pay code is assigned.
PCELABORLEVELNAME7 The Pay Code Edit Labor Level Name 7
column contains the name of the seventh labor level of the labor account to which
the pay code is assigned.
SHIFTID The Shift ID column uniquely identifies the shift.
PAYCODEID The Pay Code ID column contains the pay code to which the
edit applies.
LABORACCTID The Labor Account ID column identifies the employee's
labor account.
PCELABORACCTID The Pay Code Edit Labor Account ID column
identifies the labor account that is associated with the pay code edit.

Database Views Reference Guide

31

Chapter 2

Scheduling Views

EMPLOYEEID The Employee ID column contains a system-generated


number that uniquely identifies the employee.
PERSONID The Person ID column identifies the person to whom the badge
number is assigned.
ORGPATHTXT The Organization Path Text column contains a concatenation
of the organization names, delimited by slashes, of the ancestor organizations up
to the root of the organizational map hierarchy.

32

VP_SHIFTCOMMENTS

VP_SHIFTCOMMENTS
The Shift Comments view stores information about comments that are applied to
pay code edits.
Column

Oracle

SQL Server

Null Constraint

SHIFTSTARTDATE

Date

DateTime

Not Null

SHIFTENDDATE

Date

DateTime

Not Null

TERMINALCOMMENTCD Number(10)

Int

Null

COMMENTTEXT

VarChar2(254)

nVarChar(254) Not Null

ENTEREDONDTM

Date

DateTime

Not Null

COMMENTACTIVESW

Number(10)

Int

Not Null

SHIFTID

Number(10)

Int

Not Null

DATASOURCEID

Number(10)

Int

Not Null

COMMENTID

Number(10)

Int

Not Null

Column

Related Views

Related View Column

SHIFTID

VP_SCHEDULE

SHIFTID

Column Definitions
SHIFTSTARTDATE The Shift Start Date column contains the start date for
the shift.
SHIFTENDDATE The Shift End Date column contains the end date for the
shift.
TERMINALCOMMENTCD This column contains the unique three-digit
device code number. This number is greater than 000 but less than 1000.
COMMENTTEXT The Comment Text column contains the unique text of the
comment.

Database Views Reference Guide

33

Chapter 2

Scheduling Views

ENTEREDONDTM The Entered On Date Time column contains the date and
time when the row that represents a punch is inserted into the database. The
default value is the system date and time.
COMMENTACTIVESW The Active Switch column specifies whether the
comment is active or inactive. The possible values are:
0 = The comment is inactive.
1 (default) = The comment is active.
SHIFTID The Shift ID identifies the shift.
DATASOURCEID The Data Source ID column identifies the data source of
the pay code edit.
COMMENTID The Comment ID column contains a system-generated
number that uniquely identifies each comment record.

34

Das könnte Ihnen auch gefallen