@ -530,194 +530,256 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[SXC]" />
<views >
<views >
<view name= "sxc_hochschulen_art" >
<view name= "sxc_hochschulen_art" >
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "kurztext" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "apnr" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "apnr" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "parent" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "parent" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
</columns>
</columns>
<sql dbsystem= "" > < ![CDATA[
<sql dbsystem= "" > < ![CDATA[
select 'Hochschulen', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallint as ebene from xdummy
SELECT 'Hochschulen'::bpchar AS druck, 'Hochschulen'::bpchar AS kurztext,
union select bezeichnung, laufnummer::char(10), '0'::char(10) as parent, 1 as ebene from sxc_hsk_hochschultypen
0::character(10) AS apnr,
--Element kann sich nicht selbst als parent haben!!
NULL::character(10) AS parent,
--die Einzelhochschulen
0::smallint AS ebene
union select name, hs_nr::char(10), (select laufnummer from sxc_hsk_hochschultypen H where H.bezeichnung=sxc_hochschulen.hsk_art)::char(10) as parent,
FROM xdummy
2::smallint as ebene from sxc_hochschulen where
UNION
hs_nr is not null;
SELECT sxc_hsk_hochschultypen.bezeichnung AS druck, sxc_hsk_hochschultypen.bezeichnung AS kurztext,
sxc_hsk_hochschultypen.laufnummer::character(10) AS apnr,
'0'::character(10) AS parent,
1 AS ebene
FROM sxc_hsk_hochschultypen
UNION
SELECT sxc_hochschulen.name AS druck, sxc_hochschulen.kurztext as kurztext,
sxc_hochschulen.hs_nr AS apnr,
((( SELECT h.laufnummer
FROM sxc_hsk_hochschultypen h
WHERE h.bezeichnung = sxc_hochschulen.hsk_art)))::character(10) AS parent,
2::smallint AS ebene
FROM sxc_hochschulen
WHERE sxc_hochschulen.hs_nr IS NOT NULL;
]]></sql>
]]></sql>
</view>
</view>
<view name= "sxc_hochschulen_bland" >
<view name= "sxc_hochschulen_bland" >
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "kurztext" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "apnr" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "apnr" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "parent" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "parent" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
</columns>
</columns>
<sql dbsystem= "" > < ![CDATA[
<sql dbsystem= "" > < ![CDATA[
select 'Hochschulen', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallint as ebene from xdummy
SELECT 'Hochschulen'::character varying AS druck, 'Hochschulen'::character varying AS kurztext,
union select hsk_bundesland, substring(hsk_bundesland, 1,10), '0'::char(10) as parent, 1 as ebene from sxc_hochschulen
0::character(10) AS apnr,
union select name, hs_nr::char(10), substring(hsk_bundesland, 1,10) as parent, 2::smallint as ebene from sxc_hochschulen where
NULL::character(10) AS parent,
hs_nr is not null ;
0::smallint AS ebene
FROM xdummy
UNION
SELECT sxc_hochschulen.hsk_bundesland AS druck, sxc_hochschulen.hsk_bundesland AS kurztext,
"substring"(sxc_hochschulen.hsk_bundesland::text, 1, 10) AS apnr,
'0'::character(10) AS parent,
1 AS ebene
FROM sxc_hochschulen
UNION
SELECT sxc_hochschulen.name AS druck, sxc_hochschulen.kurztext as kurztext,
sxc_hochschulen.hs_nr AS apnr,
"substring"(sxc_hochschulen.hsk_bundesland::text, 1, 10) AS parent,
2::smallint AS ebene
FROM sxc_hochschulen
WHERE sxc_hochschulen.hs_nr IS NOT NULL;
]]></sql>
]]></sql>
</view>
</view>
<view name= "sxc_hochschulen_liste" >
<view name= "sxc_hochschulen_liste" >
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "kurztext" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "apnr" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "apnr" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "parent" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "parent" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
</columns>
</columns>
<sql dbsystem= "" > < ![CDATA[
<sql dbsystem= "" > < ![CDATA[
select 'Hochschulen', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallint as ebene from xdummy
SELECT 'Hochschulen'::character varying AS druck, 'Hochschulen'::character varying AS kurztext,
union
0::character(10) AS apnr,
select name, hs_nr::char(10), '0'::char(10) as parent, 1::smallint as ebene from sxc_hochschulen where
NULL::character(10) AS parent,
hs_nr is not null ;
0::smallint AS ebene
FROM xdummy
UNION
SELECT sxc_hochschulen.name AS druck, sxc_hochschulen.kurztext as kurztext,
sxc_hochschulen.hs_nr AS apnr,
'0'::character(10) AS parent,
1::smallint AS ebene
FROM sxc_hochschulen
WHERE sxc_hochschulen.hs_nr IS NOT NULL;
]]></sql>
]]></sql>
</view>
</view>
<view name= "sxc_hochschulen_nrw_art" >
<view name= "sxc_hochschulen_nrw_art" >
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "kurztext" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "apnr" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "apnr" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "parent" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "parent" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
</columns>
</columns>
<sql dbsystem= "" > < ![CDATA[
<sql dbsystem= "" > < ![CDATA[
select 'Hochschulen in NRW', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallint as ebene from xdummy
SELECT 'Hochschulen in NRW'::bpchar AS druck, 'Hochschulen in NRW'::bpchar AS kurztext,
union select bezeichnung, laufnummer::char(10), '0'::char(10) as parent, 1 as ebene from sxc_hsk_hochschultypen
0::character(10) AS apnr,
union select name, hs_nr::char(10), (select laufnummer from sxc_hsk_hochschultypen H where H.bezeichnung=sxc_hochschulen.hsk_art)::char(10) as parent,
NULL::character(10) AS parent,
2::smallint as ebene from sxc_hochschulen where
0::smallint AS ebene
hs_nr is not null
FROM xdummy
and hsk_bundesland='Nordrhein-Westfalen';
UNION
SELECT sxc_hsk_hochschultypen.bezeichnung AS druck, sxc_hsk_hochschultypen.bezeichnung AS kurztext,
sxc_hsk_hochschultypen.laufnummer::character(10) AS apnr,
'0'::character(10) AS parent,
1 AS ebene
FROM sxc_hsk_hochschultypen
UNION
SELECT sxc_hochschulen.name AS druck, sxc_hochschulen.kurztext as kurztext,
sxc_hochschulen.hs_nr AS apnr,
((( SELECT h.laufnummer
FROM sxc_hsk_hochschultypen h
WHERE h.bezeichnung = sxc_hochschulen.hsk_art)))::character(10) AS parent,
2::smallint AS ebene
FROM sxc_hochschulen
WHERE sxc_hochschulen.hs_nr IS NOT NULL AND sxc_hochschulen.hsk_bundesland::text = 'Nordrhein-Westfalen'::text;
]]></sql>
]]></sql>
</view>
</view>
<view name= "sxc_hochschulen_nrw_liste" >
<view name= "sxc_hochschulen_nrw_liste" >
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "kurztext" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "apnr" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "apnr" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "parent" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "parent" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
</columns>
</columns>
<sql dbsystem= "" > < ![CDATA[
<sql dbsystem= "" > < ![CDATA[
select 'Hochschulen', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallint as ebene from xdummy
SELECT 'Hochschulen'::character varying AS druck, 'Hochschulen'::character varying AS kurztext,
union
0::character(10) AS apnr,
select name, hs_nr::char(10), '0'::char(10) as parent, 1::smallint as ebene from sxc_hochschulen where
NULL::character(10) AS parent,
hs_nr is not null
0::smallint AS ebene
and hsk_bundesland='Nordrhein-Westfalen';
FROM xdummy
UNION
SELECT sxc_hochschulen.name AS druck, sxc_hochschulen.kurztext as kurztext,
sxc_hochschulen.hs_nr AS apnr,
'0'::character(10) AS parent,
1::smallint AS ebene
FROM sxc_hochschulen
WHERE sxc_hochschulen.hs_nr IS NOT NULL AND sxc_hochschulen.hsk_bundesland::text = 'Nordrhein-Westfalen'::text;
]]></sql>
]]></sql>
</view>
</view>
<view name= "sxc_hochschulen_hsk_art" >
<view name= "sxc_hochschulen_hsk_art" >
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "kurztext" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "apnr" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "apnr" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "parent" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "parent" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
</columns>
</columns>
<sql dbsystem= "" > < ![CDATA[
<sql dbsystem= "" > < ![CDATA[
SELECT 'Hochschulen'::bpchar AS druck,
SELECT 'Hochschulen'::bpchar AS druck, 'Hochschulen'::bpchar AS kurztext,
( 0) ::character(10) AS apnr,
0::character(10) AS apnr,
NULL::character(10) AS parent,
NULL::character(10) AS parent,
( 0) ::smallint AS ebene
0::smallint AS ebene
FROM public. xdummy
FROM xdummy
UNION
UNION
SELECT sxc_hsk_hochschultypen.bezeichnung AS druck,
SELECT sxc_hsk_hochschultypen.bezeichnung AS druck, sxc_hsk_hochschultypen.bezeichnung AS kurztext,
( sxc_hsk_hochschultypen.laufnummer) ::character(10) AS apnr,
sxc_hsk_hochschultypen.laufnummer::character(10) AS apnr,
'0'::character(10) AS parent,
'0'::character(10) AS parent,
1 AS ebene
1 AS ebene
FROM public. sxc_hsk_hochschultypen
FROM sxc_hsk_hochschultypen
UNION
UNION
SELECT sxc_hochschulen.name AS druck,
SELECT sxc_hochschulen.name AS druck, sxc_hochschulen.kurztext as kurztext,
sxc_hochschulen.hs_nr AS apnr,
sxc_hochschulen.hs_nr AS apnr,
(( SELECT h.laufnummer
((( SELECT h.laufnummer
FROM public. sxc_hsk_hochschultypen h
FROM sxc_hsk_hochschultypen h
WHERE ( h.bezeichnung = sxc_hochschulen.hsk_art)))::character(10) AS parent,
WHERE h.bezeichnung = sxc_hochschulen.hsk_art)))::character(10) AS parent,
( 2) ::smallint AS ebene
2::smallint AS ebene
FROM public. sxc_hochschulen
FROM sxc_hochschulen
WHERE (( sxc_hochschulen.hs_nr IS NOT NULL) AND ( NOT (sxc_hochschulen.hsk_laufnummer IN ( SELECT sxc_hochschulen_standorte.hsk_laufnummer
WHERE sxc_hochschulen.hs_nr IS NOT NULL AND NOT (sxc_hochschulen.hsk_laufnummer IN ( SELECT sxc_hochschulen_standorte.hsk_laufnummer
FROM public. sxc_hochschulen_standorte
FROM sxc_hochschulen_standorte
WHERE ( sxc_hochschulen_standorte.hauptsitz = '1'::bpchar))) ))
WHERE sxc_hochschulen_standorte.hauptsitz = '1'::bpchar))
UNION
UNION
SELECT sxc_hochschulen.name AS druck,
SELECT sxc_hochschulen.name AS druck, sxc_hochschulen.kurztext as kurztext,
( 'ST_'::text || ( sxc_hochschulen.hs_nr) ::text) AS apnr,
'ST_'::text || sxc_hochschulen.hs_nr::text AS apnr,
(( SELECT h.laufnummer
((( SELECT h.laufnummer
FROM public. sxc_hsk_hochschultypen h
FROM sxc_hsk_hochschultypen h
WHERE ( h.bezeichnung = sxc_hochschulen.hsk_art)))::character(10) AS parent,
WHERE h.bezeichnung = sxc_hochschulen.hsk_art)))::character(10) AS parent,
( 2) ::smallint AS ebene
2::smallint AS ebene
FROM public. sxc_hochschulen
FROM sxc_hochschulen
WHERE (( sxc_hochschulen.hs_nr IS NOT NULL) AND (sxc_hochschulen.hsk_laufnummer IN ( SELECT sxc_hochschulen_standorte.hsk_laufnummer
WHERE sxc_hochschulen.hs_nr IS NOT NULL AND (sxc_hochschulen.hsk_laufnummer IN ( SELECT sxc_hochschulen_standorte.hsk_laufnummer
FROM public. sxc_hochschulen_standorte
FROM sxc_hochschulen_standorte
WHERE ( sxc_hochschulen_standorte.hauptsitz = '1'::bpchar)) ))
WHERE sxc_hochschulen_standorte.hauptsitz = '1'::bpchar))
UNION
UNION
SELECT ((btrim((sxc_hochschulen_standorte.name)::text) || ' Standort '::text) || (sxc_hochschulen_standorte.standort_ort)::text) AS druck,
SELECT (btrim(sxc_hochschulen_standorte.name::text) || ' Standort '::text) || sxc_hochschulen_standorte.standort_ort::text AS druck,
(btrim(sxc_hochschulen_standorte.kurzname::text) || ' Standort '::text) || sxc_hochschulen_standorte.standort_ort::text AS kurztext,
sxc_hochschulen_standorte.standort_nr AS apnr,
sxc_hochschulen_standorte.standort_nr AS apnr,
('ST_'::text || (sxc_hochschulen_standorte.hs_nr)::text) AS parent,
'ST_'::text || sxc_hochschulen_standorte.hs_nr::text AS parent,
(3)::smallint AS ebene
3::smallint AS ebene
FROM public.sxc_hochschulen_standorte
FROM sxc_hochschulen_standorte
WHERE ((sxc_hochschulen_standorte.hs_nr IS NOT NULL) AND (sxc_hochschulen_standorte.standort_nr IS NOT NULL));
WHERE sxc_hochschulen_standorte.hs_nr IS NOT NULL AND sxc_hochschulen_standorte.standort_nr IS NOT NULL;
]]></sql>
]]></sql>
</view>
</view>
<view name= "sxc_hochschulen_traeger_bland" >
<view name= "sxc_hochschulen_traeger_bland" >
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "kurztext" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "apnr" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "apnr" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "parent" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "parent" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
</columns>
</columns>
<sql dbsystem= "" > < ![CDATA[
<sql dbsystem= "" > < ![CDATA[
SELECT 'Hochschulen'::bpchar AS druck,
SELECT 'Hochschulen'::bpchar AS druck, 'Hochschulen'::bpchar AS kurztext ,
0::character(10) AS apnr,
0::character(10) AS apnr,
NULL::character(10) AS parent,
NULL::character(10) AS parent,
0::smallint AS ebene
0::smallint AS ebene
FROM xdummy
FROM xdummy
UNION
UNION
SELECT sxc_hsk_traegerschaftstypen.bezeichnung AS druck,
SELECT sxc_hsk_traegerschaftstypen.bezeichnung AS druck, sxc_hsk_traegerschaftstypen.bezeichnung AS kurztext,
sxc_hsk_traegerschaftstypen.laufnummer::character(10) AS apnr,
sxc_hsk_traegerschaftstypen.laufnummer::character(10) AS apnr,
'0'::character(10) AS parent,
'0'::character(10) AS parent,
1 AS ebene
1 AS ebene
FROM sxc_hsk_traegerschaftstypen
FROM sxc_hsk_traegerschaftstypen
UNION
UNION
SELECT sxc_hochschulen.hsk_bundesland AS druck,
SELECT sxc_hochschulen.hsk_bundesland AS druck, sxc_hochschulen.hsk_bundesland AS kurztext,
((( SELECT h.laufnummer
((( SELECT h.laufnummer
FROM sxc_hsk_traegerschaftstypen h
FROM sxc_hsk_traegerschaftstypen h
WHERE h.bezeichnung = sxc_hochschulen.hsk_traegerschaft)))::character(1)||substring(sxc_hochschulen.hsk_bundesland::text, 1, 9) AS apnr,
WHERE h.bezeichnung::bpchar = sxc_hochschulen.hsk_traegerschaft)))::character(1)::text || " substring" (sxc_hochschulen.hsk_bundesland::text, 1, 9) AS apnr,
((( SELECT h.laufnummer
((( SELECT h.laufnummer
FROM sxc_hsk_traegerschaftstypen h
FROM sxc_hsk_traegerschaftstypen h
WHERE h.bezeichnung = sxc_hochschulen.hsk_traegerschaft)))::character(10) AS parent,
WHERE h.bezeichnung::bpchar = sxc_hochschulen.hsk_traegerschaft)))::character(10) AS parent,
2 AS ebene
2 AS ebene
FROM sxc_hochschulen
FROM sxc_hochschulen
UNION
UNION
SELECT sxc_hochschulen.name AS druck,
SELECT sxc_hochschulen.name AS druck, sxc_hochschulen.kurztext as kurztext,
sxc_hochschulen.hs_nr::text AS apnr,
sxc_hochschulen.hs_nr::text AS apnr,
((( SELECT h.laufnummer
((( SELECT h.laufnummer
FROM sxc_hsk_traegerschaftstypen h
FROM sxc_hsk_traegerschaftstypen h
WHERE h.bezeichnung = sxc_hochschulen.hsk_traegerschaft)))::character(1)||substring(sxc_hochschulen.hsk_bundesland::text, 1, 9) AS parent,
WHERE h.bezeichnung::bpchar = sxc_hochschulen.hsk_traegerschaft)))::character(1)::text || "substring"(sxc_hochschulen.hsk_bundesland::text, 1, 9) AS parent,
3::smallint AS ebene
3::smallint AS ebene
FROM sxc_hochschulen where hs_nr is not null;
FROM sxc_hochschulen
WHERE sxc_hochschulen.hs_nr IS NOT NULL;
]]></sql>
]]></sql>
</view>
</view>
<view name= "sxc_hochschulen_bland_traeger" >
<view name= "sxc_hochschulen_bland_traeger" >
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "druck" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<columns > <column name= "kurztext" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "apnr" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "apnr" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "parent" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "parent" type = "CHAR" size = "2147483647" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
<column name= "ebene" type = "INTEGER" size = "10" default = "" notnull = "false" />
</columns>
</columns>
<sql dbsystem= "" > < ![CDATA[
<sql dbsystem= "" > < ![CDATA[
SELECT 'Hochschulen'::bpchar AS druck,
SELECT 'Hochschulen'::bpchar AS druck, 'Hochschulen'::bpchar AS kurztext ,
0::character(10) AS apnr,
0::character(10) AS apnr,
NULL::character(10) AS parent,
NULL::character(10) AS parent,
0::smallint AS ebene
0::smallint AS ebene
FROM xdummy
FROM xdummy
UNION
UNION
SELECT sxc_hochschulen.hsk_bundesland AS druck,
SELECT sxc_hochschulen.hsk_bundesland AS druck, sxc_hochschulen.hsk_bundesland AS kurztext,
substring(sxc_hochschulen.hsk_bundesland::text, 1, 10) AS apnr,
substring(sxc_hochschulen.hsk_bundesland::text, 1, 10) AS apnr,
'0'::character(10) AS parent,
'0'::character(10) AS parent,
1 AS ebene
1 AS ebene
FROM sxc_hochschulen
FROM sxc_hochschulen
union
union
SELECT sxc_hochschulen.hsk_traegerschaft as druck,
SELECT sxc_hochschulen.hsk_traegerschaft as druck, sxc_hochschulen.hsk_traegerschaft as kurztext,
((( SELECT h.laufnummer FROM sxc_hsk_traegerschaftstypen h
((( SELECT h.laufnummer FROM sxc_hsk_traegerschaftstypen h
WHERE h.bezeichnung = sxc_hochschulen.hsk_traegerschaft)))::character(1) ||substring(sxc_hochschulen.hsk_bundesland::text, 1, 9) as apnr,
WHERE h.bezeichnung = sxc_hochschulen.hsk_traegerschaft)))::character(1) ||substring(sxc_hochschulen.hsk_bundesland::text, 1, 9) as apnr,
substring(sxc_hochschulen.hsk_bundesland::text, 1, 10) AS parent,
substring(sxc_hochschulen.hsk_bundesland::text, 1, 10) AS parent,
2 AS ebene
2 AS ebene
FROM sxc_hochschulen
FROM sxc_hochschulen
UNION
UNION
SELECT sxc_hochschulen.name AS druck,
SELECT sxc_hochschulen.name AS druck, sxc_hochschulen.kurztext as kurztext,
sxc_hochschulen.hs_nr::text AS apnr,
sxc_hochschulen.hs_nr::text AS apnr,
((( SELECT h.laufnummer
((( SELECT h.laufnummer
FROM sxc_hsk_traegerschaftstypen h
FROM sxc_hsk_traegerschaftstypen h