@ -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'))
</#if>