LM_PG_ADM_PR_VW(SQL View) |
Index Back |
---|---|
Learning Compliance AdminProgmAdministrator View for Learning Compliance Pivot for Program |
SELECT CRSE.OPRID , PER.LM_PERSON_ID , CRSE.LM_ACT_ID , CRSE.LM_CI_ID , CRSE.LM_ACT_CD , CRSE.LM_LRN_TYPE_DESC , PER.BUSINESS_UNIT , PER.LM_ORGANIZATION_ID , PER.LM_LE_ID , CRSE.LM_LRNR_GROUP_ID , PER.LM_MANAGER_ID , PER.LM_LOCATION_ID , %Coalesce((SELECT XLAT.XLATLONGNAME FROM PSXLATITEM XLAT WHERE XLAT.FIELDNAME = 'LM_PER_ORG' AND XLAT.FIELDVALUE=PER.LM_PER_ORG AND %EffdtCheck(PSXLATITEM XLAT1, XLAT, %CurrentDateIn)) ,(SELECT %Substring(MESSAGE_TEXT, 1, 8) FROM PSMSGCATDEFN WHERE MESSAGE_SET_NBR = 18095 AND MESSAGE_NBR = 21)) , ( SELECT C.LM_NAME_DISPLAY FROM PS_LM_PERSON_NAME C WHERE C.LM_PERSON_ID = PER.LM_PERSON_ID AND C.LM_DISPLAY_FLAG = 'Y' AND %CurrentDateIn BETWEEN C.EFFDT AND C.LM_END_EFFDT AND ((C.LM_NAME_TYPE = 'PRF') OR (C.LM_NAME_TYPE = 'PRI' AND NOT EXISTS ( SELECT LM_NAME_TYPE FROM PS_LM_PERSON_NAME WHERE LM_PERSON_ID = C.LM_PERSON_ID AND LM_NAME_TYPE = 'PRF')))) , ( SELECT C.LM_NAME_DISPLAY FROM PS_LM_PERSON_NAME C WHERE C.LM_PERSON_ID = PER.LM_MANAGER_ID AND C.LM_DISPLAY_FLAG = 'Y' AND %CurrentDateIn BETWEEN C.EFFDT AND C.LM_END_EFFDT AND ((C.LM_NAME_TYPE = 'PRF') OR (C.LM_NAME_TYPE = 'PRI' AND NOT EXISTS ( SELECT LM_NAME_TYPE FROM PS_LM_PERSON_NAME WHERE LM_PERSON_ID = C.LM_PERSON_ID AND LM_NAME_TYPE = 'PRF')))) , LRNR.LM_PRG_REG_ID , CRSE.LM_ACT_NAME , %Coalesce(LRNR.LM_PRG_STTS, '0') , %Coalesce(LRNR.XLATLONGNAME,(SELECT %Substring(MESSAGE_TEXT, 1, 12) FROM PSMSGCATDEFN WHERE MESSAGE_SET_NBR = 18095 AND MESSAGE_NBR = 2)) , %Coalesce((SELECT ORG.LM_ORG_DESCR FROM PS_LM_ORGANIZATION ORG WHERE ORG.LM_ORGANIZATION_ID = PER.LM_ORGANIZATION_ID AND %CurrentDateIn BETWEEN ORG.EFFDT AND ORG.LM_END_EFFDT AND ORG.EFF_STATUS = 'A'),' ') , PER.LM_JOB_TITLE , LRNR.LM_ENRL_DT , LRNR.LM_COMPL_DT , LRNR.LM_TARGET_CMPL_DT , LRNR.LM_CERT_DT , LRNR.LM_EXPR_DT , ( SELECT XLAT.XLATLONGNAME FROM PSXLATITEM XLAT WHERE XLAT.FIELDNAME='LM_LRNG_REQ' AND XLAT.FIELDVALUE=(%Coalesce(LRNR.LM_LRNG_REQ,'N')) AND %EffdtCheck(PSXLATITEM XLAT2, XLAT, %CurrentDateIn) ) ,( SELECT XLAT.XLATLONGNAME FROM PSXLATITEM XLAT WHERE XLAT.FIELDNAME='LM_TEAM_FLG' AND XLAT.FIELDVALUE=(CASE WHEN PER.LM_MANAGER_ID=CRSE.LM_OPR_ID THEN 'Y' ELSE 'N' END) AND %EffdtCheck(PSXLATITEM XLAT3, XLAT, %CurrentDateIn) ) FROM ( SELECT DISTINCT D1.LM_PERSON_ID , CRSE.LM_ACT_ID , CRSE.LM_CI_ID , CRSE.LM_ACT_CD , CRSE.LM_LRN_TYPE_DESC , CRSE.OPRID , CRSE.LM_PERSON_ID AS LM_OPR_ID , CRSE.LM_ACT_NAME , D1.LM_LRNR_GROUP_ID FROM PS_LM_PG_MGR_CRSE CRSE , PS_LM_PRG_SEC B1 , PS_LM_GROUP_PERSON D1 WHERE CRSE.LM_ACT_ID = B1.LM_PRG_ID AND B1.LM_LRNR_GROUP_ID =D1.LM_LRNR_GROUP_ID AND %CurrentDateIn BETWEEN B1.EFFDT AND B1.LM_END_EFFDT AND CRSE.LM_ACT_ID<>0 AND CRSE.LM_CI_ID=0 AND CRSE.LM_CURR_USER_FLG = 'Y' ) CRSE JOIN PS_LM_PERSON_ATTRB PER ON CRSE.LM_PERSON_ID = PER.LM_PERSON_ID LEFT OUTER JOIN ( SELECT LRNR.LM_PERSON_ID , LRNR.LM_PRG_ID , LRNR.LM_PRG_REG_ID , LRNR.LM_PRG_STTS , ( SELECT XLAT.XLATLONGNAME FROM PSXLATITEM XLAT WHERE XLAT.FIELDNAME = 'LM_PRG_STTS' AND XLAT.FIELDVALUE = LRNR.LM_PRG_STTS AND %EffdtCheck(PSXLATITEM XLAT1, XLAT, %CurrentDateIn) ) AS XLATLONGNAME , LRNR.LM_ENRL_DT , LRNR.LM_COMPL_DT , LRNR.LM_TARGET_CMPL_DT , CER.LM_CERT_DT , CER.LM_EXPR_DT , CASE WHEN ( SELECT REQ1.LM_OBJV_NEEDED FROM PS_LM_LRNR_OBJV REQ1 WHERE REQ1.LM_PERSON_ID= LRNR.LM_PERSON_ID AND REQ1.LM_PRG_REG_ID=LRNR.LM_PRG_REG_ID AND REQ1.LM_PRG_ID=LRNR.LM_PRG_ID AND REQ1.LM_TARGET_CMPL_DT IS NOT NULL AND REQ1.LM_LRNR_OBJV_ID =( SELECT MAX(REQ2.LM_LRNR_OBJV_ID) FROM PS_LM_LRNR_OBJV REQ2 WHERE REQ1.LM_PERSON_ID= REQ2.LM_PERSON_ID AND REQ1.LM_PRG_REG_ID=REQ2.LM_PRG_REG_ID AND REQ1.LM_PRG_ID=REQ2.LM_PRG_ID))='Y' THEN 'Y' WHEN ( SELECT REQ2.LM_REQUIRED FROM PS_LM_LPLN_DTL REQ2 WHERE REQ2.LM_PERSON_ID= LRNR.LM_PERSON_ID AND REQ2.LM_PRG_REG_ID=LRNR.LM_PRG_REG_ID AND REQ2.LM_TARGET_DATE IS NOT NULL AND REQ2.LM_LPLN_ID= ( SELECT MAX (REQ3.LM_LPLN_ID) FROM PS_LM_LPLN_DTL REQ3 WHERE REQ2.LM_PERSON_ID =REQ3.LM_PERSON_ID AND REQ2.LM_PRG_REG_ID = REQ3.LM_PRG_REG_ID AND REQ3.LM_PRG_REG_ID<>0))='Y' THEN 'Y' ELSE 'N' END AS LM_LRNG_REQ FROM PS_LM_PRG_REG LRNR LEFT OUTER JOIN PS_LM_LRNR_CERT CER ON LRNR.LM_PRG_REG_ID=CER.LM_PRG_REG_ID AND LRNR.LM_ENRL_DT=( SELECT MAX(LRNR1.LM_ENRL_DT) FROM PS_LM_PRG_REG LRNR1 WHERE LRNR.LM_PERSON_ID =LRNR1.LM_PERSON_ID AND LRNR.LM_PRG_ID = LRNR1.LM_PRG_ID) AND LRNR.LM_PRG_REG_ID = ( SELECT MAX(LRNR2.LM_PRG_REG_ID) FROM PS_LM_PRG_REG LRNR2 WHERE LRNR.LM_PERSON_ID =LRNR2.LM_PERSON_ID AND LRNR.LM_PRG_ID = LRNR2.LM_PRG_ID AND LRNR.LM_ENRL_DT=LRNR2.LM_ENRL_DT)) LRNR ON CRSE.LM_ACT_ID = LRNR.LM_PRG_ID AND PER.LM_PERSON_ID = LRNR.LM_PERSON_ID AND CRSE.LM_CI_ID = 0 WHERE PER.LM_ACTIVE = 'Y' AND PER.LM_EMPL_RCD = ( SELECT MIN(JOB2.LM_EMPL_RCD) FROM PS_LM_PERSON_ATTRB JOB2 WHERE JOB2.LM_PERSON_ID = PER.LM_PERSON_ID AND JOB2.EFFDT = ( SELECT MAX(EFFDT) FROM PS_LM_PERSON_ATTRB WHERE LM_PERSON_ID = JOB2.LM_PERSON_ID AND LM_EMPL_RCD = JOB2.LM_EMPL_RCD AND EFFDT <= PER.EFFDT) AND JOB2.LM_END_EFFDT >= %CurrentDateIn AND ((JOB2.LM_ACTIVE = 'Y' AND JOB2.LM_JOB_INDICATOR = 'P') OR NOT EXISTS ( SELECT 'X' FROM PS_LM_PERSON_ATTRB JOB3 WHERE JOB3.LM_PERSON_ID = JOB2.LM_PERSON_ID AND JOB3.LM_EMPL_RCD <> JOB2.LM_EMPL_RCD AND JOB3.LM_END_EFFDT >= %CurrentDateIn AND JOB3.EFFDT = ( SELECT MAX(EFFDT) FROM PS_LM_PERSON_ATTRB WHERE LM_PERSON_ID = JOB3.LM_PERSON_ID AND LM_EMPL_RCD = JOB3.LM_EMPL_RCD AND EFFDT <= %CurrentDateIn AND LM_END_EFFDT >= %CurrentDateIn) AND ((JOB3.LM_ACTIVE = 'Y' AND (JOB2.LM_ACTIVE <> 'Y' OR (JOB3.LM_JOB_INDICATOR = 'P' AND JOB2.LM_JOB_INDICATOR <> 'P'))) OR (JOB3.LM_JOB_INDICATOR = 'P' AND JOB2.LM_JOB_INDICATOR <> 'P' AND JOB2.LM_ACTIVE <> 'Y'))))) AND PER.LM_END_EFFDT >= %CurrentDateIn |
# | 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 | LM_PERSON_ID | Number(15,0) | DECIMAL(15) NOT NULL | ELM Person ID |
3 | LM_PRG_ID | Number(10,0) | DECIMAL(10) NOT NULL | Program ID is a unique identifier for curriculum and certification Programs. |
4 | LM_CI_ID | Number(10,0) | DECIMAL(10) NOT NULL | Catalog Item ID - System Generated ID Number associated with each Catalog Item |
5 | 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. |
6 | LM_TMPL_TYPE_NAME | Character(30) | VARCHAR2(30) NOT NULL | Template Name |
7 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
8 | LM_ORGANIZATION_ID | Number(15,0) | DECIMAL(15) NOT NULL | Organization ID |
9 | LM_LE_ID | Number(10,0) | DECIMAL(10) NOT NULL | Learning Environment ID - System Generated number |
10 | LM_LRNR_GROUP_ID | Number(15,0) | DECIMAL(15) NOT NULL | Learner Group ID - Business Role/ Student Group ID |
11 | LM_MANAGER_ID | Number(15,0) | DECIMAL(15) NOT NULL | Manager ID |
12 | LM_LOCATION_ID | Number(15,0) | DECIMAL(15) NOT NULL | Location Id |
13 | LM_XLAT_LONG | Character(30) | VARCHAR2(30) NOT NULL | Learner Type |
14 | LM_NAME_DISPLAY | Character(50) | VARCHAR2(50) NOT NULL | Name Display field |
15 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
16 | LM_PRG_REG_ID | Number(10,0) | DECIMAL(10) NOT NULL | The Program Registration ID is a unique identifier for a learner's program enrollment. |
17 | LM_ACT_NAME | Character(254) | VARCHAR2(254) NOT NULL | Activity Name |
18 | 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 |
19 | XLATLONGNAME | Character(30) | VARCHAR2(30) NOT NULL | Translate Long Name |
20 | LM_ORG_DESCR | Character(50) | VARCHAR2(50) NOT NULL | Customer Description |
21 | LM_JOB_TITLE | Character(30) | VARCHAR2(30) NOT NULL | Job Title |
22 | LM_ENRL_DT | Date(10) | DATE | Enrollment/Registration Date |
23 | LM_COMPL_DATE | Date(10) | DATE | Learning Plan Completion Date |
24 | LM_TARGET_CMPL_DT | Date(10) | DATE | The target date by which the student should complete the course. This field is only applicable for WBT activity and the Learning Period for the WBT activity is Enforced. If the Learning Period is not enforced, this field will hold no value. |
25 | LM_CERT_DT | Date(10) | DATE | Certification Date |
26 | LM_EXPR_DT | Date(10) | DATE | Certification Expiration Date is a fixed, preset date when the certification will expire. |
27 | DESCR2 | Character(30) | VARCHAR2(30) NOT NULL | Descr2 |
28 | DESCRSHORT | Character(10) | VARCHAR2(10) NOT NULL | Short Description |