LM_BO004_B1_VW

(SQL View)
Index Back

For TU Usage

For TU Usage

SELECT G.OPRID , G.RUN_CNTL_ID , H.LM_ORGANIZATION_ID , H.LM_ORG_DESCR , A.LM_TU_POOL_ID , A.LM_TU_POOL_NAME , A.LM_TU_POOL_DESCR , D.NAME , E.LM_ACT_CD , E.LM_ACT_ID , E.LM_CS_LONG_NM , C.LM_STTS , C.LM_ENRL_DT , E.LM_START_DT , E.LM_END_DT , B.LM_PAID_TUS + B.LM_PAID_DP_TUS , P.XLATLONGNAME , R.LANGUAGE_CD FROM PS_LM_ENRLMT_PYMT B , PS_LM_ENRLMT_VW C , PS_LM_ACT_CI_VW E , PS_LM_TUPL_ITM_VW F , PS_LM_RUNCTL_FI G , PS_LM_ORG_VW H , PS_LM_TU_OWNER_VW A , PS_LM_PER_NAME_VW D , PSXLATITEM P , PS_PRCSRUNCNTL R WHERE G.OPRID=R.OPRID AND G.RUN_CNTL_ID =R.RUN_CNTL_ID AND B.LM_PYMT_MTHD = 'TU' AND A.LM_MOP_OWNER_ID = H.LM_ORGANIZATION_ID AND A.LM_MOP_OWNER_TYPE = 'ORG' AND A.LM_TU_POOL_ID = B.LM_TU_POOL_ID AND A.LM_TU_POOL_ID = F.LM_TU_POOL_ID AND D.LM_PERSON_ID = C.LM_PERSON_ID AND B.LM_ENRLMT_ID = C.LM_ENRLMT_ID AND E.LM_ACT_ID = C.LM_ACT_ID AND C.LM_ORGANIZATION_ID = H.LM_ORGANIZATION_ID AND ( H.LM_ORG_TYPE = G.LM_ORG_TYPE_RPT OR G.LM_ORG_TYPE_RPT = 'ALL') AND ( H.LM_ORGANIZATION_ID = G.LM_ORGANIZATION_ID OR G.LM_ORGANIZATION_ID = 0) AND ( A.LM_TU_POOL_ID = G.LM_TU_POOL_ID OR G.LM_TU_POOL_ID = 0) AND (( C.LM_ACT_ID = G.LM_ACT_ID) OR ( G.LM_ACT_ID = 0 AND G.LM_PRG_ID = 0)) AND ( G.LM_ACTIVITY_DT = 'S' AND (( E.LM_START_DT BETWEEN G.FROMDATE AND G.THRUDATE) OR ( G.FROMDATE IS NULL AND E.LM_START_DT <= G.THRUDATE) OR ( G.THRUDATE IS NULL AND E.LM_START_DT >= G.FROMDATE) OR ( G.FROMDATE IS NULL AND G.THRUDATE IS NULL)) OR ( G.LM_ACTIVITY_DT = 'E' AND ( E.LM_END_DT BETWEEN G.FROMDATE AND G.THRUDATE) OR ( G.FROMDATE IS NULL AND E.LM_END_DT <= G.THRUDATE) OR ( G.THRUDATE IS NULL AND E.LM_END_DT >= G.FROMDATE) OR ( G.FROMDATE IS NULL AND G.THRUDATE IS NULL))) AND P.EFFDT = ( SELECT MAX(P_ED.EFFDT) FROM PSXLATITEM P_ED WHERE P.FIELDNAME = P_ED.FIELDNAME AND P.FIELDVALUE = P_ED.FIELDVALUE AND P_ED.EFFDT <= %CurrentDateIn) AND C.LM_STTS = P.FIELDVALUE AND P.FIELDNAME = 'LM_STTS'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 RUN_CNTL_ID Character(30) VARCHAR2(30) NOT NULL Run Control ID
3 LM_ORGANIZATION_ID Number(15,0) DECIMAL(15) NOT NULL Organization ID
4 LM_ORG_DESCR Character(50) VARCHAR2(50) NOT NULL Customer Description
5 LM_TU_POOL_ID Number(10,0) DECIMAL(10) NOT NULL Training Unit Pool No. Unique key for Training Unit Pool Record.
6 LM_TU_POOL_NAME Character(20) VARCHAR2(20) NOT NULL Training Unit Pool
7 LM_TU_POOL_DESCR Character(40) VARCHAR2(40) NOT NULL Training Unit Pool Description.
8 NAME Character(50) VARCHAR2(50) NOT NULL Name
9 LM_ACT_CD Character(30) VARCHAR2(30) NOT NULL Activity Code
10 LM_ACT_ID Number(10,0) DECIMAL(10) NOT NULL Activity ID
11 LM_CS_LONG_NM Character(200) VARCHAR2(200) NOT NULL Long Name - Describes the long name of an object
12 LM_STTS Character(4) VARCHAR2(4) NOT NULL Enrollment Status
CANC=Dropped
COMP=Completed
DECL=Denied
ENRL=Enrolled
INCO=Not Completed
INPO=In-Progress
MACT=Moved to New Activity
NOTS=Not Started
PEAP=Pending Approval
PEPA=Pending Payment
PLAN=Planned
PPYA=Payment Approval
RQST=Learning Request
WAIV=Waived
WTLT=Waitlisted
13 LM_ENRL_DT Date(10) DATE Enrollment/Registration Date
14 LM_START_DT Date(10) DATE Start Date
15 LM_END_DT Date(10) DATE End Date
16 LM_NO_OF_TUS Number(14,3) DECIMAL(13,3) NOT NULL No of Training Units available/used.
17 XLATLONGNAME Character(30) VARCHAR2(30) NOT NULL Translate Long Name
18 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code