Browse Source

Einfügen Fach_sem_zahl bis 10 und eine Zeile(Spalte) FS>10 in xcube_dims

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

5
src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql

@ -48,7 +48,10 @@ select 'semester',druck ,tid::varchar(50),tid from kenn_semester;
<#if TableFieldExists('sos_stg_aggr','fach_sem_zahl')> <#if TableFieldExists('sos_stg_aggr','fach_sem_zahl')>
delete from xcube_dims where id='fssemzahl'; delete from xcube_dims where id='fssemzahl';
INSERT INTO xcube_dims (id,apnr,name,sort1) INSERT INTO xcube_dims (id,apnr,name,sort1)
select distinct 'fssemzahl',fach_sem_zahl::varchar(10),fach_sem_zahl||'.FS',fach_sem_zahl from sos_stg_aggr; select distinct 'fssemzahl',fach_sem_zahl::varchar(10),fach_sem_zahl||'.FS',fach_sem_zahl from sos_stg_aggr
where fach_sem_zahl <= 10;
INSERT INTO xcube_dims (id,apnr,name,sort1)
select distinct 'fssemzahl', '99','FS>10',99 from sos_stg_aggr where fach_sem_zahl>10;
</#if> </#if>
<#if TableFieldExists('sos_stg_aggr','hssem')> <#if TableFieldExists('sos_stg_aggr','hssem')>

Loading…
Cancel
Save