From 6ea2fccd267b15c77b6d4660e6d8d77c4f111da3 Mon Sep 17 00:00:00 2001 From: Daniel Quathamer Date: Fri, 22 Nov 2024 09:31:07 +0100 Subject: [PATCH] =?UTF-8?q?die=20F=C3=A4cher=20werden=20generell=20auf=203?= =?UTF-8?q?-stellig=20korrigiert.=20Das=20pa=C3=9Ft=20dann=20auch=20zu=20d?= =?UTF-8?q?en=20STBA-Stammdaten-Tabellen=20im=20Kernmodul=20#7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/qa/hilfstabellen/qa_sos_stg_aggr_int_fuellen.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src-modules/module/qa/hilfstabellen/qa_sos_stg_aggr_int_fuellen.sql b/src-modules/module/qa/hilfstabellen/qa_sos_stg_aggr_int_fuellen.sql index fb4033d..202258b 100644 --- a/src-modules/module/qa/hilfstabellen/qa_sos_stg_aggr_int_fuellen.sql +++ b/src-modules/module/qa/hilfstabellen/qa_sos_stg_aggr_int_fuellen.sql @@ -49,7 +49,10 @@ S.stutyp, S.stufrm, S.summe, S.matrikel_nr, -D.stg_astat as stg, +--führende 0 entfernen: +(case when substring(D.stg_astat from 1 for 1)='0' + then substring(D.stg_astat from 2 for 3) + else D.stg_astat end) as stg, D.abschluss_astat as abschluss, S.stichtag FROM dim_studiengang D, sos_stg_aggr S left outer join sos_k_hrst H @@ -61,3 +64,4 @@ and S.stichtag in (select I.tid from sos_stichtag I where appl_key in ('0','1')) +