|
|
@ -3,9 +3,14 @@ create view xcube_wohnort_staat( |
|
|
|
druck, |
|
|
|
druck, |
|
|
|
apnr, |
|
|
|
apnr, |
|
|
|
parent) as |
|
|
|
parent) as |
|
|
|
|
|
|
|
select 'alle'::varchar(255) as druck , |
|
|
|
|
|
|
|
'alle'::char(10) as apnr, |
|
|
|
|
|
|
|
null as parent |
|
|
|
|
|
|
|
from xdummy |
|
|
|
|
|
|
|
union |
|
|
|
select 'Deutschland'::varchar(255) as druck , |
|
|
|
select 'Deutschland'::varchar(255) as druck , |
|
|
|
'0'::char(10) as apnr, |
|
|
|
'0'::char(10) as apnr, |
|
|
|
null as parent |
|
|
|
'alle' as parent |
|
|
|
from xdummy |
|
|
|
from xdummy |
|
|
|
union select druck, |
|
|
|
union select druck, |
|
|
|
apnr, |
|
|
|
apnr, |
|
|
@ -15,6 +20,8 @@ union select druck, |
|
|
|
'' || val(astat) as apnr , |
|
|
|
'' || val(astat) as apnr , |
|
|
|
bund_apnr as parent |
|
|
|
bund_apnr as parent |
|
|
|
from cifx where key=11 |
|
|
|
from cifx where key=11 |
|
|
|
union select 'Ausland' druck , '1' apnr, null as parent from xdummy |
|
|
|
union select 'Ausland' druck , '1' apnr, 'alle' as parent from xdummy |
|
|
|
union select druck,apnr,'1' from cifx where key=747 and parent is not null |
|
|
|
union select druck,apnr,'1' from cifx where key=747 and parent is not null |
|
|
|
union select druck, '' || astat::integer, bund_apnr from cifx where key=12 and apnr != 'D' |
|
|
|
union select druck, '' || astat::integer, bund_apnr from cifx where key=12 and apnr != 'D' |
|
|
|
|
|
|
|
union |
|
|
|
|
|
|
|
select 'unbekannt' druck, '-9999' apnr, 'alle' as parent from xdummy; |
|
|
|