TL_PTCOMPERN_VW

(SQL View)
Index Back

View of Comp Time Earned

This is a view with Comp Leave Ind = CERN ( Compensatory Time Earned) on TL_PAYABLE_TIME

SELECT P.EMPLID ,P.EMPL_RCD ,P.DUR ,P.SEQ_NBR ,P.TRC ,P.TL_QUANTITY FROM PS_TL_PAYABLE_TIME P , PS_TL_TRC_TBL T WHERE P.TRC= T.TRC AND P.PAYABLE_STATUS <> 'OE' AND T.COMP_LEAV_IND='CERN' AND T.EFFDT = ( SELECT MAX(T1.EFFDT) FROM PS_TL_TRC_TBL T1 WHERE T1.TRC=T.TRC AND T1.EFFDT<= P.DUR)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Rcd Nbr
3 DUR Date(10) DATE Date Under Report associates time being reported, scheduled or paid, to a specific date.
4 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
5 TRC Character(5) VARCHAR2(5) NOT NULL Time Reporting Code used to report time in Time and Labor
6 TL_QUANTITY Signed Number(20,6) DECIMAL(18,6) NOT NULL This field represents the measure of Work in hrs,amount etc.,