From f45d16bf8bde432f3c4b3411eff9e527944f4ba8 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Thu, 9 Feb 2023 17:39:05 +0100 Subject: [PATCH] =?UTF-8?q?Einf=C3=BCgen=20Fach=5Fsem=5Fzahl=20bis=2010=20?= =?UTF-8?q?und=20eine=20Zeile(Spalte)=20FS>10=20in=20xcube=5Fdims?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/xcube/schluesseltabellen/xcube_dims_install.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql index 2846d41..de40918 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql +++ b/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')> delete from xcube_dims where id='fssemzahl'; 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 TableFieldExists('sos_stg_aggr','hssem')>