SAD_CRM_FLT_SPL(SQL View) |
Index Back |
---|---|
Sub-Plan ViewSA/CRM Integration This view is used to filter the student sub-plan data that will be published to CRM. |
SELECT EMPLID ,ACAD_CAREER ,STDNT_CAR_NBR ,ADM_APPL_NBR ,APPL_PROG_NBR ,EFFDT ,EFFSEQ ,ACAD_PLAN ,ACAD_SUB_PLAN ,DECLARE_DT ,REQ_TERM FROM PS_ADM_APPL_SBPLAN A WHERE A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_ADM_APPL_SBPLAN B WHERE A.EMPLID = B.EMPLID AND A.ACAD_CAREER = B.ACAD_CAREER AND A.STDNT_CAR_NBR = B.STDNT_CAR_NBR AND A.ADM_APPL_NBR = B.ADM_APPL_NBR AND A.APPL_PROG_NBR = B.APPL_PROG_NBR AND A.EFFSEQ = B.EFFSEQ AND A.ACAD_PLAN = B.ACAD_PLAN AND A.ACAD_SUB_PLAN = B.ACAD_SUB_PLAN) AND A.EFFSEQ = ( SELECT MAX(C.EFFSEQ) FROM PS_ADM_APPL_SBPLAN C WHERE A.EMPLID = C.EMPLID AND A.ACAD_CAREER = C.ACAD_CAREER AND A.STDNT_CAR_NBR = C.STDNT_CAR_NBR AND A.ADM_APPL_NBR = C.ADM_APPL_NBR AND A.APPL_PROG_NBR = C.APPL_PROG_NBR AND A.EFFDT = C.EFFDT AND A.ACAD_PLAN = C.ACAD_PLAN AND A.ACAD_SUB_PLAN = C.ACAD_SUB_PLAN) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PERSONAL_DATA |
2 | ACAD_CAREER | Character(4) | VARCHAR2(4) NOT NULL |
Academic Career
BAC=Bachelor (NLD) BBL=Vocational Coaching (NLD) BOL=Vocational Training (NLD) BUSN=Graduate Business CNED=Continuing Education CRED=Semester Credit EDU=Education (NLD) EXED=Extended Education GRAD=Graduate LAW=Law MEDS=Medical School NONA=Non Award PGRD=Postgraduate RSCH=Research TECH=Technical UENG=Undergraduate Engineering UGRD=Undergraduate VAVO=Advanced General Educ. (NLD) VETM=Veterinary Medicine Prompt Table: STDNT_CAREER |
3 | STDNT_CAR_NBR | Number(3,0) | SMALLINT NOT NULL | Student Career Nbr |
4 | ADM_APPL_NBR | Character(8) | VARCHAR2(8) NOT NULL |
Application Nbr
Prompt Table: ADM_APPL_DATA |
5 | APPL_PROG_NBR | Number(3,0) | SMALLINT NOT NULL |
Application Program Nbr
Prompt Table: ADM_APP_CAR_SEQ |
6 | EFFDT | Date(10) | DATE NOT NULL |
Effective Date
Default Value: %date |
7 | EFFSEQ | Number(3,0) | SMALLINT NOT NULL | Effective Sequence |
8 | ACAD_PLAN | Character(10) | VARCHAR2(10) NOT NULL |
Academic Plan
Prompt Table: ADM_APPL_PLAN |
9 | ACAD_SUB_PLAN | Character(10) | VARCHAR2(10) NOT NULL |
Academic Sub-Plan
Default Value: OPR_DEF_TBL_CS.ACAD_SUB_PLAN Prompt Table: ACAD_SUBPLN_TBL |
10 | DECLARE_DT | Date(10) | DATE NOT NULL |
Declare Date
Default Value: ADM_APPL_PLAN.DECLARE_DT |
11 | REQ_TERM | Character(4) | VARCHAR2(4) NOT NULL |
Requirement Term
Prompt Table: TERM_TBL |