SFA_LNDISBUPGVW(SQL View) |
Index Back |
---|---|
Loan Disbursement upgradeThis view is designed to simplify population of SULA fields in Loan Disburement record with the data deom SFACOD_DISB. |
SELECT A.EMPLID ,A.INSTITUTION ,A.AID_YEAR ,A.ACAD_CAREER ,A.LOAN_TYPE ,A.LN_APPL_SEQ ,A.ITEM_TYPE ,A.DISBURSEMENT_ID , E.SFA_CR_PMT_PER_DT , E.SFA_CR_ENRLMNTSTAT , E.SFA_CR_PROG_CIP_CD FROM PS_LOAN_DISBMNT A , PS_LOAN_ORIG_DTL B , PS_LOAN_DISB_ACTN C , PS_SFA_COD_AWARD D , PS_SFA_COD_DISB E WHERE A.EMPLID = B.EMPLID AND A.INSTITUTION = B.INSTITUTION AND A.AID_YEAR=B.AID_YEAR AND A.ACAD_CAREER = B.ACAD_CAREER AND A.LOAN_TYPE = B.LOAN_TYPE AND A.LN_APPL_SEQ = B.LN_APPL_SEQ AND A.ITEM_TYPE = B.ITEM_TYPE AND A.LN_EXT_ACT_ID > ' ' AND A.EMPLID = C.EMPLID AND A.INSTITUTION = C.INSTITUTION AND A.AID_YEAR = C.AID_YEAR AND A.ACAD_CAREER = C.ACAD_CAREER AND A.LOAN_TYPE = C.LOAN_TYPE AND A.LN_APPL_SEQ = C.LN_APPL_SEQ AND A.ITEM_TYPE = C.ITEM_TYPE AND A.DISBURSEMENT_ID = C.DISBURSEMENT_ID AND D.SFA_CR_DOCUMENT_ID = ( SELECT C1.SFA_CR_DOCUMENT_ID FROM PS_LOAN_DISB_ACTN C1 WHERE C.EMPLID = C1.EMPLID AND C.INSTITUTION = C1.INSTITUTION AND C.AID_YEAR = C1.AID_YEAR AND C.ACAD_CAREER = C1.ACAD_CAREER AND C.LOAN_TYPE = C1.LOAN_TYPE AND C.LN_APPL_SEQ = C1.LN_APPL_SEQ AND C.ITEM_TYPE = C1.ITEM_TYPE AND C.DISBURSEMENT_ID = C1.DISBURSEMENT_ID AND C.LN_DISB_SEQ_NBR = C1.LN_DISB_SEQ_NBR AND C1.DL_DISB_SEQ = ( SELECT MAX(C2.DL_DISB_SEQ) FROM PS_LOAN_DISB_ACTN C2 WHERE C.EMPLID = C2.EMPLID AND C.INSTITUTION = C2.INSTITUTION AND C.AID_YEAR = C2.AID_YEAR AND C.ACAD_CAREER = C2.ACAD_CAREER AND C.LOAN_TYPE = C2.LOAN_TYPE AND C.LN_APPL_SEQ = C2.LN_APPL_SEQ AND C.ITEM_TYPE = C2.ITEM_TYPE AND C.DISBURSEMENT_ID = C2.DISBURSEMENT_ID AND C.LN_DISB_SEQ_NBR = C2.LN_DISB_SEQ_NBR AND C2.LN_ACTION_CD IN ('A', 'D') AND C2.LN_ACTION_STATUS NOT IN('F', 'I', 'P', 'R') ) AND C1.LN_DISB_SEQ_NBR = ( SELECT MAX(C3.LN_DISB_SEQ_NBR) FROM PS_LOAN_DISB_ACTN C3 WHERE C.EMPLID = C3.EMPLID AND C.INSTITUTION = C3.INSTITUTION AND C.AID_YEAR = C3.AID_YEAR AND C.ACAD_CAREER = C3.ACAD_CAREER AND C.LOAN_TYPE = C3.LOAN_TYPE AND C.LN_APPL_SEQ = C3.LN_APPL_SEQ AND C.ITEM_TYPE = C3.ITEM_TYPE AND C.DISBURSEMENT_ID = C3.DISBURSEMENT_ID AND C3.LN_ACTION_CD IN ('A', 'D') AND C3.LN_ACTION_STATUS NOT IN('F', 'I', 'P', 'R') ) ) AND D.EMPLID = B.EMPLID AND D.SFA_CR_AWARD_YEAR = B.AID_YEAR AND D.SFA_CR_AWARD_ID = B.LN_APPL_ID AND D.SFA_CR_DOCUMENT_ID = E.SFA_CR_DOCUMENT_ID AND D.SFA_CR_RPT_SCHL_ID = E.SFA_CR_RPT_SCHL_ID AND D.SFA_CR_ATT_SCHL_ID = E.SFA_CR_ATT_SCHL_ID AND D.EMPLID = E.EMPLID AND D.SFA_CR_AWARD_NAME = E.SFA_CR_AWARD_NAME AND D.SFA_CR_AWARD_YEAR = E.SFA_CR_AWARD_YEAR AND D.SFA_CR_AWARD_NBR = E.SFA_CR_AWARD_NBR AND E.SFA_CR_DSB_RELEASE = 'true' AND E.SFA_CR_DISB_NBR = TO_NUMBER(A.LN_EXT_ACT_ID) AND TO_NUMBER(E.SFA_CR_DSB_SEQ_NBR) = C.DL_DISB_SEQ AND A.AID_YEAR='2015' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PEOPLE_SRCH |
2 | INSTITUTION | Character(5) | VARCHAR2(5) NOT NULL |
Academic Institution
Prompt Table: INSTITUTION_TBL |
3 | AID_YEAR | Character(4) | VARCHAR2(4) NOT NULL |
Aid Year
Prompt Table: AID_YEAR_TBL |
4 | 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 Default Value: LOAN_ORIG_DTL.ACAD_CAREER |
5 | LOAN_TYPE | Character(4) | VARCHAR2(4) NOT NULL | Loan Type Cd |
6 | LN_APPL_SEQ | Number(2,0) | SMALLINT NOT NULL |
Loan Application Seq Num
Default Value: LOAN_ORIG_DTL.LN_APPL_SEQ |
7 | ITEM_TYPE | Character(12) | VARCHAR2(12) NOT NULL |
Item Type
Default Value: LOAN_ORIG_DTL.ITEM_TYPE Prompt Table: LN_ITEM_TBL |
8 | DISBURSEMENT_ID | Character(2) | VARCHAR2(2) NOT NULL | Disbursement ID |
9 | SFA_CR_PMT_PER_DT | Character(10) | VARCHAR2(10) NOT NULL | Payment Period Start Date |
10 | SFA_CR_ENRLMNTSTAT | Character(1) | VARCHAR2(1) NOT NULL | Enrollment Status |
11 | SFA_CR_PROG_CIP_CD | Character(20) | VARCHAR2(20) NOT NULL | Program CIP Code |