diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql index de40918..2f2d54a 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql @@ -57,10 +57,17 @@ select distinct 'fssemzahl', '99','FS>10',99 from sos_stg_aggr where fach_sem_za <#if TableFieldExists('sos_stg_aggr','hssem')> delete from xcube_dims where id='hssem'; INSERT INTO xcube_dims (id,apnr,name,sort1) -select distinct 'hssemzahl',hssem::varchar(10),hssem||'.HS',hssem from sos_stg_aggr; +select distinct 'hssemzahl',hssem::varchar(10),hssem||'.HS',hssem from sos_stg_aggr +where hssem <= 10; +INSERT INTO xcube_dims (id,apnr,name,sort1) +select distinct 'hssemzahl', '999','HS>10',99 from sos_stg_aggr where hssem>10; - + <#if TableFieldExists('sos_stg_aggr','hzbart')> +delete from xcube_dims where id='hzbart'; +INSERT INTO xcube_dims (id,apnr,name,sort1) +select distinct 'hzbart',tid::varchar(10),eintrag,tid from hs_zugangsber; + --Zum Testen --INSERT INTO xcube_dims (id,apnr,name,sort1,parent,strukturstr)