From cf5037ed336891baa279882ed909b8adb0135150 Mon Sep 17 00:00:00 2001 From: Daniel Quathamer Date: Fri, 27 Jun 2025 15:19:01 +0200 Subject: [PATCH] =?UTF-8?q?Anzahl=20gleichzeitiger=20F=C3=A4cher=20#1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-modules/module/msg/conf/msg.xml | 2 ++ .../hilfstabellen/msg_fkombi_aggr_fuellen.sql | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src-modules/module/msg/conf/msg.xml b/src-modules/module/msg/conf/msg.xml index 43907e3..ba0b0aa 100644 --- a/src-modules/module/msg/conf/msg.xml +++ b/src-modules/module/msg/conf/msg.xml @@ -23,6 +23,7 @@ in 5 groben Kategorien: Allgem. HS-Reife, Fachgeb.HS-Reife etc. + Klassifizierung der Kombination @@ -30,6 +31,7 @@ +Im jew. Semester und Studiengang die Anzahl der kombinierten Fächer diff --git a/src-modules/module/msg/hilfstabellen/msg_fkombi_aggr_fuellen.sql b/src-modules/module/msg/hilfstabellen/msg_fkombi_aggr_fuellen.sql index 84a6991..1a17e06 100644 --- a/src-modules/module/msg/hilfstabellen/msg_fkombi_aggr_fuellen.sql +++ b/src-modules/module/msg/hilfstabellen/msg_fkombi_aggr_fuellen.sql @@ -14,13 +14,15 @@ geschlecht SMALLINT not null, alter decimal(14,2) , hzbart SMALLINT , hrst CHAR(10) , +stufrm char(10), fach_sem_zahl SMALLINT not null, kz_rueck_beur_ein SMALLINT not null, kombi_kennz CHAR(10) , kombi_tid_stg_2 INTEGER , kombi_fach_nr SMALLINT , kombi_fach_sem_zahl SMALLINT , -kombi_ch30_fach CHAR(10) , +kombi_ch30_fach CHAR(10) , +kombi_anz smallint, summe decimal(19,6) ) ; @@ -36,6 +38,7 @@ matrikel_nr, alter, hzbart, hrst, + stufrm, fach_sem_zahl, kz_rueck_beur_ein, summe) @@ -49,6 +52,7 @@ select matrikel_nr, alter, hzbart, hrst, + stufrm, fach_sem_zahl, kz_rueck_beur_ein, summe @@ -73,6 +77,7 @@ insert into msg_fkombi_aggr alter, hzbart, hrst, + stufrm, fach_sem_zahl, kz_rueck_beur_ein, kombi_kennz, @@ -92,6 +97,7 @@ T.geschlecht, T.alter, T.hzbart, T.hrst, +T.stufrm, T.fach_sem_zahl, T.kz_rueck_beur_ein, ''::varchar(10) as kombi_kennz, @@ -110,6 +116,16 @@ and T.sem_rueck_beur_ein=S.sem_rueck_beur_ein --and T.fach_nr !=S.fach_nr ; +update msg_fkombi_aggr F set kombi_anz=(select count(*) +from sos_stg_aggr S, dim_studiengang D, sos_stichtag I +where S.stichtag=I.tid +and I.appl_key='0' +and D.tid=S.tid_stg +and S.matrikel_nr=F.matrikel_nr +and S.sem_rueck_beur_ein=F.sem_rueck_beur_ein +and S.studiengang_nr=F.studiengang_nr +); + --TODO: Hildesheim spezifisch: update msg_fkombi_aggr F set kombi_kennz='SPRACHE_F3' where exists(select S.matrikel_nr