diff --git a/src-modules/module/viz/schluesseltabellen/studierende_datenblatt_dashboard.sql b/src-modules/module/viz/schluesseltabellen/studierende_datenblatt_dashboard.sql index fb91c32..f9361f7 100644 --- a/src-modules/module/viz/schluesseltabellen/studierende_datenblatt_dashboard.sql +++ b/src-modules/module/viz/schluesseltabellen/studierende_datenblatt_dashboard.sql @@ -13,10 +13,11 @@ select name -drop view if exists rpta_sos_hzb_bland; -create view rpta_sos_hzb_bland as +drop table if exists rpta_sos_hzb_bland; +create table rpta_sos_hzb_bland as select W.astat as wohnsitz_astat, W.bland as wohnsitz_bland, B.druck as bland_druck, B.astat as bland_astat from sos_hzb_wohnsitz W, sos_k_bland B where W.bland=B.apnr; +create index ix_wohnsitz_bland on rpta_sos_hzb_bland(wohnsitz_astat); select 'sos_stud_astat_dashboard' as tablename, 'geschlecht_str' as uniquename ,