Browse Source

Zusammenfassung Hochschulsemester - bis 10 einzeln, dann HS>10, Dimension HZB hinzugefügt

xcube0.1
Marlies Winterstein 2 years ago
parent
commit
eb2ce46355
  1. 11
      src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql

11
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 @@ -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>
<#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;
</#if>
--Zum Testen
--INSERT INTO xcube_dims (id,apnr,name,sort1,parent,strukturstr)

Loading…
Cancel
Save