diff --git a/src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql b/src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql index d26dc1d..a0d0b3a 100644 --- a/src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql +++ b/src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql @@ -119,7 +119,9 @@ hzb_note=(case when substring(H.hzb_note from 1 for 1) ~ '[0-9]' and substring(H.hzb_note from 2 for 1) in (',','.') and substring(H.hzb_note from 3 for 1) ~ '[0-9]' and (substring(H.hzb_note from 4 for 1) ~ '[0-9]' or substring(H.hzb_note from 4 for 1)='') -and length(H.hzb_note)<=4 then to_number(replace(H.hzb_note,',','.'),'9.99') else null::decimal(8,4) end ), +and length(H.hzb_note)<=4 then to_number(replace(H.hzb_note,',','.'),'9.99') +when H.hzb_note ~ '[0-9]' then decval(H.hzb_note) +else null::decimal(8,4) end ), hzb_land_sub_r_nr=H.hzb_land_sub_r_nr, hzb_land_nr=H.hzb_land_nr, hzb_jahr=H.hzb_jahr