@ -1,5 +1,11 @@
@@ -1,5 +1,11 @@
- - freemarker template
< sqlvars >
< sqlvar name = " beginn_semester " > < ! [ CDATA [
select param_val from unload_params
where param_id = ' COSTAGE_start_st_sem ' ;
] ] >
< / sqlvar >
< / sqlvars >
drop table if exists tmp_studien ;
drop table if exists tmp_studien2 ;
@ -67,6 +73,7 @@ and SA.gueltig_ab <=SM.semester_ende --nur letzter Status im jew. Semester inter
@@ -67,6 +73,7 @@ and SA.gueltig_ab <=SM.semester_ende --nur letzter Status im jew. Semester inter
and ( SA . studienstatustyp not in ( ' Z ' , ' X ' ) or ( SA . studienstatustyp in ( ' Z ' , ' X ' ) and SA . gueltig_ab < = today ( ) ) ) - - 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 $ { COSTAGE_STUDENT_FILTER }
and SM . semester_tid > = $ { beginn_semester }
- - group by 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13
;
@ -345,7 +352,7 @@ and tmp_studien2.st_studstamm_nr=S.st_studstamm_nr
@@ -345,7 +352,7 @@ and tmp_studien2.st_studstamm_nr=S.st_studstamm_nr
and S . studiengangs_typ_kb = ' TSG '
and tmp_studien2 . tsg_generated = 1
and tmp_studien2 . fachsemester = S . fachsemester
and S . status_historie = 1
;
drop table tmp_studien_msg_tsg_fehlend ;
@ -440,7 +447,8 @@ drop table tmp_studien2;
@@ -440,7 +447,8 @@ drop table tmp_studien2;
delete from costage_st_studien_aggr
- - provisorisch in Testphase :
where $ { COSTAGE_STUDENT_FILTER } ;
where $ { COSTAGE_STUDENT_FILTER }
and semester > = $ { beginn_semester } ;
create index ix_tmp_studien2 on tmp_studien3 ( kz_rueck_beur_ein )
;
@ -596,6 +604,7 @@ hzb_staat=H.land_nr
@@ -596,6 +604,7 @@ hzb_staat=H.land_nr
from costage_bw_bewerb_hzb H , costage_bw_bewerbungen BW
where BW . nr = H . bw_bewrbng_nr
and costage_st_studien_aggr . st_studstamm_nr = BW . st_studstamm_nr
and costage_st_studien_aggr . semester > = $ { beginn_semester }
;
- - Abmeldungsart :
@ -607,6 +616,7 @@ and S.semester_tid=costage_st_studien_aggr.semester
@@ -607,6 +616,7 @@ and S.semester_tid=costage_st_studien_aggr.semester
and P . st_studium_nr = costage_st_studien_aggr . st_studium_nr
and A . st_abm_art_kurzbezeichnung = P . st_abm_art_kurzbezeichnung
and A . bezug = ' P '
and costage_st_studien_aggr . semester > = $ { beginn_semester }
;
- - dann studienbezogen :
update costage_st_studien_aggr set abm_art_s = P . st_abm_art_kurzbezeichnung
@ -616,6 +626,7 @@ and S.semester_tid=costage_st_studien_aggr.semester
@@ -616,6 +626,7 @@ and S.semester_tid=costage_st_studien_aggr.semester
and P . st_studium_nr = costage_st_studien_aggr . st_studium_nr
and A . st_abm_art_kurzbezeichnung = P . st_abm_art_kurzbezeichnung
and A . bezug = ' S '
and costage_st_studien_aggr . semester > = $ { beginn_semester }
;
- - Beurlaubungs - Art :
@ -625,6 +636,7 @@ from costage_st_urlaube U, costage_st_semester S
@@ -625,6 +636,7 @@ from costage_st_urlaube U, costage_st_semester S
where S . st_sem_nr = U . st_sem_nr
and S . semester_tid = costage_st_studien_aggr . semester
and U . st_studium_nr = costage_st_studien_aggr . st_studium_nr
and costage_st_studien_aggr . semester > = $ { beginn_semester }
;
- - Wohnorte :
@ -633,24 +645,28 @@ update costage_st_studien_aggr set adresse_ort_s=A.land_kfz_kennzeichen_subregio
@@ -633,24 +645,28 @@ update costage_st_studien_aggr set adresse_ort_s=A.land_kfz_kennzeichen_subregio
from costage_st_adressen A
where A . st_studstamm_nr = costage_st_studien_aggr . st_studstamm_nr
and A . st_adresse_typ = ' S '
and costage_st_studien_aggr . semester > = $ { beginn_semester }
;
- - dann Semesterwohnsitz Staat :
update costage_st_studien_aggr set adresse_staat_s = A . st_land_nr
from costage_st_adressen A
where A . st_studstamm_nr = costage_st_studien_aggr . st_studstamm_nr
and A . st_adresse_typ = ' H '
and costage_st_studien_aggr . semester > = $ { beginn_semester }
;
- - dann Heimatwohnsitz Ort :
update costage_st_studien_aggr set adresse_ort_h = A . land_kfz_kennzeichen_subregion
from costage_st_adressen A
where A . st_studstamm_nr = costage_st_studien_aggr . st_studstamm_nr
and A . st_adresse_typ = ' H '
and costage_st_studien_aggr . semester > = $ { beginn_semester }
;
- - dann Heimatwohnsitz Staat :
update costage_st_studien_aggr set adresse_staat_h = A . st_land_nr
from costage_st_adressen A
where A . st_studstamm_nr = costage_st_studien_aggr . st_studstamm_nr
and A . st_adresse_typ = ' H '
and costage_st_studien_aggr . semester > = $ { beginn_semester }
;
drop table tmp_studien3 ;