-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #658 from bcgov/grad-release
Grad release 1.21.0
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
...sources/db/migration/1.0/V1.0.66__DDL-REPLACE_VIEW-REPORT_GRAD_SCHOOL__DISTRICT_YE_VW.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
CREATE OR REPLACE VIEW REPORT_GRAD_SCHOOL_YE_VW AS | ||
SELECT | ||
COUNT(GRADUATION_STUDENT_RECORD_ID) STUD_NUM, | ||
-- Revert code back to school of record GRAD2-2758 | ||
--SUBSTR(DECODE(A1.SCHOOL_AT_GRADUATION, NULL, A1.SCHOOL_OF_RECORD, A1.SCHOOL_AT_GRADUATION), 0, 3) MINCODE | ||
A1.SCHOOL_OF_RECORD MINCODE | ||
FROM | ||
GRADUATION_STUDENT_RECORD A1 | ||
WHERE | ||
A1.PROGRAM_COMPLETION_DATE is null | ||
AND A1.STUDENT_STATUS_CODE = 'CUR' | ||
AND (A1.STUDENT_GRADE ='AD' or A1.STUDENT_GRADE='12') | ||
--GROUP BY SUBSTR(DECODE(A1.SCHOOL_AT_GRADUATION, NULL, A1.SCHOOL_OF_RECORD, A1.SCHOOL_AT_GRADUATION), 0, 3) | ||
GROUP BY A1.SCHOOL_OF_RECORD | ||
ORDER BY 1 DESC; | ||
|
||
CREATE OR REPLACE VIEW REPORT_GRAD_DISTRICT_YE_VW AS | ||
SELECT DISTINCT | ||
-- Revert code back to school of record GRAD2-2758 | ||
--SUBSTR(DECODE(A1.SCHOOL_AT_GRADUATION, NULL, A1.SCHOOL_OF_RECORD, A1.SCHOOL_AT_GRADUATION), 0, 3) MINCODE | ||
SUBSTR(A1.SCHOOL_OF_RECORD, 0, 3) MINCODE | ||
FROM | ||
GRADUATION_STUDENT_RECORD A1 | ||
WHERE | ||
A1.PROGRAM_COMPLETION_DATE is null | ||
AND A1.STUDENT_STATUS_CODE = 'CUR' | ||
AND (A1.STUDENT_GRADE ='AD' or A1.STUDENT_GRADE='12') | ||
--GROUP BY SUBSTR(DECODE(A1.SCHOOL_AT_GRADUATION, NULL, A1.SCHOOL_OF_RECORD, A1.SCHOOL_AT_GRADUATION), 0, 3) | ||
GROUP BY SUBSTR(A1.SCHOOL_OF_RECORD, 0, 3) | ||
ORDER BY 1 DESC; | ||
|
||
|