|
|
@ -63,7 +63,7 @@ null::integer as hzb_jahr, |
|
|
|
null::date as hzb_datum , |
|
|
|
null::date as hzb_datum , |
|
|
|
null::decimal(14,7) as hzb_note, |
|
|
|
null::decimal(14,7) as hzb_note, |
|
|
|
null::char(10) as abm_art_s, |
|
|
|
null::char(10) as abm_art_s, |
|
|
|
rank () over (partition by SM.st_sem_nr, S.st_studstamm_nr, SG.studiengangs_identifikator order by SA.gueltig_ab desc) as status_historie |
|
|
|
rank () over (partition by SM.st_sem_nr, S.st_studstamm_nr, SG.studiengangs_identifikator order by SA.gueltig_ab desc,SA.studienstatustyp desc) as status_historie |
|
|
|
--rank () over (partition by SM.st_sem_nr, S.st_studstamm_nr, SG.studiengangs_identifikator order by (case when SA.gueltig_ab =SM.semester_ende then date_val('01.01.1900') else SA.gueltig_ab end) desc) as status_historie |
|
|
|
--rank () over (partition by SM.st_sem_nr, S.st_studstamm_nr, SG.studiengangs_identifikator order by (case when SA.gueltig_ab =SM.semester_ende then date_val('01.01.1900') else SA.gueltig_ab end) desc) as status_historie |
|
|
|
into temp tmp_studien |
|
|
|
into temp tmp_studien |
|
|
|
FROM costage_st_studierendenstammdaten S, |
|
|
|
FROM costage_st_studierendenstammdaten S, |
|
|
@ -88,7 +88,7 @@ and (SA.studienstatustyp not in ('Z','X') or ( |
|
|
|
and SA.gueltig_ab <= today() |
|
|
|
and SA.gueltig_ab <= today() |
|
|
|
and date(SA.gueltig_ab) < date(SM.semester_ende) |
|
|
|
and date(SA.gueltig_ab) < date(SM.semester_ende) |
|
|
|
)) --Studis außer erst/neueinschr/rückmeld/beurlaubt werden in der Semestermitte exmatr. zum Endedatum Semesterende, wenn dieses Datum in der Zukunft liegt soll der Studi mit dem vorherigen Status erscheinen |
|
|
|
)) --Studis außer erst/neueinschr/rückmeld/beurlaubt werden in der Semestermitte exmatr. zum Endedatum Semesterende, wenn dieses Datum in der Zukunft liegt soll der Studi mit dem vorherigen Status erscheinen |
|
|
|
--and SA.studienstatustyp not in ('a','o') |
|
|
|
and SA.studienstatustyp not in ('a','o','z') |
|
|
|
--group by 1,2,3,4,5,6,7,8,9,10,11,12,13 |
|
|
|
--group by 1,2,3,4,5,6,7,8,9,10,11,12,13 |
|
|
|
and ${COSTAGE_STUDENT_FILTER} |
|
|
|
and ${COSTAGE_STUDENT_FILTER} |
|
|
|
and SM.semester_tid >= ${beginn_semester} |
|
|
|
and SM.semester_tid >= ${beginn_semester} |
|
|
|