Created
August 9, 2013 23:31
-
-
Save Dispader/6198187 to your computer and use it in GitHub Desktop.
example query from Financial Aid Status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT A.CPS_SCHOOL_CODE, A.DESCR, B.SUSPEND_REASON | |
FROM PS_INST_SCHOOL_CDS A, PS_ISIR_00_1_EC B | |
WHERE B.IWD_TRANS_NBR = (SELECT MAX( C.IWD_TRANS_NBR) | |
FROM PS_ISIR_00_1_EC C | |
WHERE C.ECTRANSID = B.ECTRANSID | |
AND C.EMPLID = B.EMPLID) | |
AND A.CPS_SCHOOL_CODE = B.CPS_SCHOOL_CODE | |
AND A.INSTITUTION = ? | |
AND A.AID_YEAR = ? | |
AND A.CPS_SCHOOL_CODE NOT LIKE 'G%' | |
AND B.ISIR_LOAD_STATUS = 'S' | |
AND B.EMPLID = ? | |
AND B.IWD_BATCH_YR = ? | |
AND B.SUSPEND_REASON IN ('4','5') | |
AND B.MAX_MATCH_LEVEL < 16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment