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')) +