LM_BO004_B2_VW(SQL View) |
Index Back |
---|---|
For TU Usage reportFor TU Usage report |
SELECT O.OPRID , O.RUN_CNTL_ID , L.LM_ORGANIZATION_ID , L.LM_ORG_DESCR , M.LM_TU_POOL_ID , M.LM_TU_POOL_NAME , M.LM_TU_POOL_DESCR , N.NAME , I.LM_PRG_CD , I.LM_PRG_ID , I.LM_PRG_LONG_NM , I.LM_PRG_STTS , I.LM_ENRL_DT , %DateNull , %DateNull , J.LM_PAID_TUS + J.LM_PAID_DP_TUS , Q.XLATLONGNAME , R.LANGUAGE_CD FROM PS_LM_PRG_ENRL_VW I , PS_LM_ENRLMT_PYMT J , PS_LM_TUPL_ITM_VW K , PS_LM_ORG_VW L , PS_LM_TU_OWNER_VW M , PS_LM_PER_NAME_VW N , PS_LM_RUNCTL_FI O , PSXLATITEM Q , PS_PRCSRUNCNTL R WHERE O.OPRID=R.OPRID AND O.RUN_CNTL_ID =R.RUN_CNTL_ID AND I.LM_PYMT_MTHD = 'TU' AND L.LM_ORGANIZATION_ID = M.LM_MOP_OWNER_ID AND M.LM_MOP_OWNER_TYPE = 'ORG' AND M.LM_TU_POOL_ID = K.LM_TU_POOL_ID AND J.LM_TU_POOL_ID = M.LM_TU_POOL_ID AND I.LM_PERSON_ID = N.LM_PERSON_ID AND I.LM_PRG_REG_ID = J.LM_ENRLMT_ID AND I.LM_ORGANIZATION_ID = L.LM_ORGANIZATION_ID AND ( L.LM_ORG_TYPE = O.LM_ORG_TYPE_RPT OR O.LM_ORG_TYPE_RPT = 'ALL') AND ( I.LM_ORGANIZATION_ID = O.LM_ORGANIZATION_ID OR O.LM_ORGANIZATION_ID = 0) AND ( J.LM_TU_POOL_ID = O.LM_TU_POOL_ID OR O.LM_TU_POOL_ID = 0) AND (( I.LM_PRG_ID = O.LM_PRG_ID) OR ( O.LM_PRG_ID = 0 AND O.LM_ACT_ID = 0)) AND Q.EFFDT = ( SELECT MAX(Q_ED.EFFDT) FROM PSXLATITEM Q_ED WHERE Q.FIELDNAME = Q_ED.FIELDNAME AND Q.FIELDVALUE = Q_ED.FIELDVALUE AND Q_ED.EFFDT <= %CurrentDateIn) AND I.LM_PRG_STTS = Q.FIELDVALUE AND Q.FIELDNAME = 'LM_PRG_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_PRG_CD | Character(30) | VARCHAR2(30) NOT NULL | Program Code is a user defined field. This field allows duplicates and is not part of the primary key structure. |
10 | LM_PRG_ID | Number(10,0) | DECIMAL(10) NOT NULL | Program ID is a unique identifier for curriculum and certification Programs. |
11 | LM_PRG_LONG_NM | Character(200) | VARCHAR2(200) NOT NULL | Program Long Name |
12 | LM_PRG_STTS | Character(4) | VARCHAR2(4) NOT NULL |
Program Reg Status
CANC=Dropped COMP=Completed DECL=Decline ENRL=Registered EXPR=Expired INCO=Not Completed INPO=In-Progress PEAP=Pending Approval PEPA=Pending Payment PLAN=Planned PPYA=Payment Approval REIS=Reissue REVK=Revoked WAIV=Waived WARN=Warning |
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 |