|
|
@ -67,6 +67,23 @@ select distinct 'hssemzahl', '999','HS>10',99 from sos_stg_aggr where hssem>10; |
|
|
|
delete from xcube_dims where id='hzbart'; |
|
|
|
delete from xcube_dims where id='hzbart'; |
|
|
|
INSERT INTO xcube_dims (id,apnr,name,sort1) |
|
|
|
INSERT INTO xcube_dims (id,apnr,name,sort1) |
|
|
|
select distinct 'hzbart',tid::varchar(10),eintrag,tid from hs_zugangsber; |
|
|
|
select distinct 'hzbart',tid::varchar(10),eintrag,tid from hs_zugangsber; |
|
|
|
|
|
|
|
</#if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<#if TableFieldExists('sos_stg_aggr','alter')> |
|
|
|
|
|
|
|
delete from xcube_dims where id='alter'; |
|
|
|
|
|
|
|
INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) |
|
|
|
|
|
|
|
values |
|
|
|
|
|
|
|
('alter','gesamt',null,'alle','1=1',1), |
|
|
|
|
|
|
|
('alter', 'a1', 'gesamt', '<20 Jahre','$1::numeric(14,2)<20.00',10), |
|
|
|
|
|
|
|
('alter', 'a2', 'gesamt','20-24 Jahre','$1::numeric(14,2)>=20.00 and $1::numeric(14,2)<25.00',20), |
|
|
|
|
|
|
|
('alter', 'a3', 'gesamt','25-29 Jahre','$1::numeric(14,2)>=25.00 and $1::numeric(14,2)<30.00',30), |
|
|
|
|
|
|
|
('alter', 'a4', 'gesamt','30-34 Jahre','$1::numeric(14,2)>=30.00 and $1::numeric(14,2)<35.00',40), |
|
|
|
|
|
|
|
('alter', 'a5', 'gesamt','35-39 Jahre','$1::numeric(14,2)>=35.00 and $1::numeric(14,2)<40.00',50), |
|
|
|
|
|
|
|
('alter', 'a6', 'gesamt','40-44 Jahre','$1::numeric(14,2)>=40.00 and $1::numeric(14,2)<45.00',60), |
|
|
|
|
|
|
|
('alter', 'a7', 'gesamt','45-49 Jahre','$1::numeric(14,2)>=45.00 and $1::numeric(14,2)<50.00',70), |
|
|
|
|
|
|
|
('alter', 'a8', 'gesamt','50-54 Jahre','$1::numeric(14,2)>=50.00 and $1::numeric(14,2)<55.00',80), |
|
|
|
|
|
|
|
('alter', 'a9', 'gesamt','55-59 Jahre','$1::numeric(14,2)>=55.00 and $1::numeric(14,2)<60.00',90), |
|
|
|
|
|
|
|
('alter', 'a10', 'gesamt','>=60 Jahre','$1::numeric(14,2)>=60.00',100); |
|
|
|
</#if> |
|
|
|
</#if> |
|
|
|
|
|
|
|
|
|
|
|
--Zum Testen |
|
|
|
--Zum Testen |
|
|
|