|
|
|
@ -120,7 +120,8 @@ beginn_datum,
@@ -120,7 +120,8 @@ beginn_datum,
|
|
|
|
|
gueltig_ab, |
|
|
|
|
semester, |
|
|
|
|
primaerflag_studien, |
|
|
|
|
hrst |
|
|
|
|
hrst, |
|
|
|
|
null::char(10) as abm_art_s |
|
|
|
|
into temp tmp_studien_msg |
|
|
|
|
from tmp_studien T where T.studiengangs_typ_kb in ('MSG') |
|
|
|
|
and T.status_historie=1 |
|
|
|
@ -128,6 +129,16 @@ and T.status_historie=1
@@ -128,6 +129,16 @@ and T.status_historie=1
|
|
|
|
|
|
|
|
|
|
select 10,timestamp_str(now()) from xdummy; |
|
|
|
|
|
|
|
|
|
--Abmeldungsart studienbezogen: |
|
|
|
|
update tmp_studien_msg set abm_art_s=P.st_abm_art_kurzbezeichnung |
|
|
|
|
from costage_st_personen_abmeldungen P, costage_st_semester S, costage_st_abmeldungsarten A |
|
|
|
|
where S.st_sem_nr=P.st_sem_nr |
|
|
|
|
and S.semester_tid=tmp_studien_msg.semester |
|
|
|
|
and P.st_studium_nr=tmp_studien_msg.st_studium_nr |
|
|
|
|
and A.st_abm_art_kurzbezeichnung=P.st_abm_art_kurzbezeichnung |
|
|
|
|
and A.bezug='S' |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
--wir machen den MSG von einer Zeile zu einer Spalte |
|
|
|
|
--1. Prio TSG hat Primärflag: |
|
|
|
|
drop table if exists tmp_studien_esg_tsg; |
|
|
|
@ -235,7 +246,8 @@ drop table if exists tmp_studien_tsg;
@@ -235,7 +246,8 @@ drop table if exists tmp_studien_tsg;
|
|
|
|
|
select ETSG.*, |
|
|
|
|
MSG.primaerflag_studien as primaerflag_studien_msg, |
|
|
|
|
MTSG.st_studiengang_nr_msg, |
|
|
|
|
MTSG.studienfach_sortierung |
|
|
|
|
MTSG.studienfach_sortierung, |
|
|
|
|
MSG.abm_art_s as abm_art_s_msg |
|
|
|
|
into temp tmp_studien_tsg |
|
|
|
|
from tmp_studien_esg_tsg ETSG,tmp_studien_msg MSG,costage_st_studiengaenge_mtsg MTSG |
|
|
|
|
where |
|
|
|
@ -360,6 +372,7 @@ null::char(10) as statustyp_tsg,
@@ -360,6 +372,7 @@ null::char(10) as statustyp_tsg,
|
|
|
|
|
T.hzb_note, |
|
|
|
|
T.hzb_land_nr, |
|
|
|
|
null::char(10) as abm_art_s, |
|
|
|
|
null::char(10) as abm_art_s_msg, |
|
|
|
|
T.studienfach_sortierung, |
|
|
|
|
null::timestamp as beginn_datum, |
|
|
|
|
null::timestamp AS gueltig_ab, |
|
|
|
@ -372,13 +385,14 @@ from tmp_studien_msg_tsg_fehlend F, tmp_studien_tsg T
@@ -372,13 +385,14 @@ from tmp_studien_msg_tsg_fehlend F, tmp_studien_tsg T
|
|
|
|
|
where F.st_studstamm_nr=T.st_studstamm_nr |
|
|
|
|
and F.st_studiengang_nr_tsg=T.st_studiengang_nr |
|
|
|
|
and T.semester=F.endsemester_tsg |
|
|
|
|
group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,23,24,25,26,27,28,29 ,30 ,31,32 ,33 ,34,35 --,36 |
|
|
|
|
group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,23,24,25,26,27,28,29 ,30 ,31,32 ,33 ,34,35,36 |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
update tmp_studien_msg_tsg_fehlend2 set |
|
|
|
|
hssem=S.hssem, |
|
|
|
|
statustyp_tsg=S.statustyp_tsg, |
|
|
|
|
abm_art_s=S.abm_art_s, |
|
|
|
|
abm_art_s_msg=S.abm_art_s_msg, |
|
|
|
|
beginn_datum =S.beginn_datum, |
|
|
|
|
gueltig_ab=S.gueltig_ab, |
|
|
|
|
st_studienstatus_nr=S.st_studienstatus_nr |
|
|
|
@ -433,6 +447,7 @@ hzb_datum ,
@@ -433,6 +447,7 @@ hzb_datum ,
|
|
|
|
|
hzb_note, |
|
|
|
|
hzb_land_nr, |
|
|
|
|
abm_art_s, |
|
|
|
|
abm_art_s_msg, |
|
|
|
|
fachsemester, |
|
|
|
|
studienfach_sortierung, |
|
|
|
|
letztes_tsg_semester, |
|
|
|
@ -473,6 +488,7 @@ hzb_datum ,
@@ -473,6 +488,7 @@ hzb_datum ,
|
|
|
|
|
hzb_note, |
|
|
|
|
hzb_land_nr, |
|
|
|
|
abm_art_s, |
|
|
|
|
abm_art_s_msg, |
|
|
|
|
fachsemester, |
|
|
|
|
studienfach_sortierung, |
|
|
|
|
letztes_tsg_semester, |
|
|
|
@ -553,6 +569,7 @@ hzb_datum ,
@@ -553,6 +569,7 @@ hzb_datum ,
|
|
|
|
|
hzb_note, |
|
|
|
|
hzb_land_nr, |
|
|
|
|
abm_art_s, |
|
|
|
|
abm_art_s_msg, |
|
|
|
|
fachsemester, |
|
|
|
|
studienfach_sortierung, |
|
|
|
|
letztes_tsg_semester, |
|
|
|
@ -751,6 +768,7 @@ hzb_datum ,
@@ -751,6 +768,7 @@ hzb_datum ,
|
|
|
|
|
hzb_note, |
|
|
|
|
hzb_land_nr, |
|
|
|
|
abm_art_s, |
|
|
|
|
abm_art_s_msg, |
|
|
|
|
fachsemester, |
|
|
|
|
studienfach_sortierung, |
|
|
|
|
letztes_tsg_semester, |
|
|
|
@ -828,6 +846,7 @@ st_studium_nr,
@@ -828,6 +846,7 @@ st_studium_nr,
|
|
|
|
|
hzb_datum, |
|
|
|
|
hzb_note, |
|
|
|
|
abm_art_s, |
|
|
|
|
abm_art_s_msg, |
|
|
|
|
po_stp_stp_version_kb, |
|
|
|
|
po_regelstudienzeit, |
|
|
|
|
studiengangs_identifikator_msg, |
|
|
|
@ -878,6 +897,7 @@ select st_studium_nr,
@@ -878,6 +897,7 @@ select st_studium_nr,
|
|
|
|
|
hzb_datum, |
|
|
|
|
hzb_note, |
|
|
|
|
abm_art_s, |
|
|
|
|
abm_art_s_msg, |
|
|
|
|
po_stp_stp_version_kb, |
|
|
|
|
po_regelstudienzeit, |
|
|
|
|
studiengangs_identifikator_msg, |
|
|
|
@ -920,6 +940,7 @@ st_studium_nr,
@@ -920,6 +940,7 @@ st_studium_nr,
|
|
|
|
|
hzb_datum, |
|
|
|
|
hzb_note, |
|
|
|
|
abm_art_s, |
|
|
|
|
abm_art_s_msg, |
|
|
|
|
po_stp_stp_version_kb, |
|
|
|
|
po_regelstudienzeit, |
|
|
|
|
studiengangs_identifikator_msg, |
|
|
|
@ -971,6 +992,7 @@ cast (NULL as int) as studiengang_nr2,
@@ -971,6 +992,7 @@ cast (NULL as int) as studiengang_nr2,
|
|
|
|
|
hzb_datum, |
|
|
|
|
hzb_note, |
|
|
|
|
abm_art_s, |
|
|
|
|
abm_art_s_msg, |
|
|
|
|
po_stp_stp_version_kb, |
|
|
|
|
po_regelstudienzeit, |
|
|
|
|
studiengangs_identifikator_msg, |
|
|
|
|