|
|
|
|
@ -650,6 +650,80 @@ UNION
@@ -650,6 +650,80 @@ UNION
|
|
|
|
|
WHERE ((sxc_hochschulen_standorte.hs_nr IS NOT NULL) AND (sxc_hochschulen_standorte.standort_nr IS NOT NULL)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]]></sql> |
|
|
|
|
</view> |
|
|
|
|
<view name="sxc_hochschulen_traeger_bland"> |
|
|
|
|
<columns><column name="druck" 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="ebene" type ="INTEGER" size ="10" default ="" notnull ="false" /> |
|
|
|
|
</columns> |
|
|
|
|
<sql dbsystem=""><![CDATA[ |
|
|
|
|
SELECT 'Hochschulen'::bpchar AS druck, |
|
|
|
|
0::character(10) AS apnr, |
|
|
|
|
NULL::character(10) AS parent, |
|
|
|
|
0::smallint AS ebene |
|
|
|
|
FROM xdummy |
|
|
|
|
UNION |
|
|
|
|
SELECT sxc_hsk_traegerschaftstypen.bezeichnung AS druck, |
|
|
|
|
sxc_hsk_traegerschaftstypen.laufnummer::character(10) AS apnr, |
|
|
|
|
'0'::character(10) AS parent, |
|
|
|
|
1 AS ebene |
|
|
|
|
FROM sxc_hsk_traegerschaftstypen |
|
|
|
|
UNION |
|
|
|
|
SELECT sxc_hochschulen.hsk_bundesland AS druck, |
|
|
|
|
((( 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, |
|
|
|
|
((( SELECT h.laufnummer |
|
|
|
|
FROM sxc_hsk_traegerschaftstypen h |
|
|
|
|
WHERE h.bezeichnung = sxc_hochschulen.hsk_traegerschaft)))::character(10) AS parent, |
|
|
|
|
|
|
|
|
|
2 AS ebene |
|
|
|
|
FROM sxc_hochschulen |
|
|
|
|
UNION |
|
|
|
|
SELECT sxc_hochschulen.name AS druck, |
|
|
|
|
sxc_hochschulen.hs_nr::text AS apnr, |
|
|
|
|
((( 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 parent, |
|
|
|
|
3::smallint AS ebene |
|
|
|
|
FROM sxc_hochschulen where hs_nr is not null; |
|
|
|
|
]]></sql> |
|
|
|
|
</view> |
|
|
|
|
<view name="sxc_hochschulen_bland_traeger"> |
|
|
|
|
<columns><column name="druck" 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="ebene" type ="INTEGER" size ="10" default ="" notnull ="false" /> |
|
|
|
|
</columns> |
|
|
|
|
<sql dbsystem=""><![CDATA[ |
|
|
|
|
SELECT 'Hochschulen'::bpchar AS druck, |
|
|
|
|
0::character(10) AS apnr, |
|
|
|
|
NULL::character(10) AS parent, |
|
|
|
|
0::smallint AS ebene |
|
|
|
|
FROM xdummy |
|
|
|
|
UNION |
|
|
|
|
SELECT sxc_hochschulen.hsk_bundesland AS druck, |
|
|
|
|
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.hsk_traegerschaft as druck, |
|
|
|
|
((( 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, |
|
|
|
|
substring(sxc_hochschulen.hsk_bundesland::text, 1, 10) AS parent, |
|
|
|
|
2 AS ebene |
|
|
|
|
FROM sxc_hochschulen |
|
|
|
|
UNION |
|
|
|
|
SELECT sxc_hochschulen.name AS druck, |
|
|
|
|
sxc_hochschulen.hs_nr::text AS apnr, |
|
|
|
|
((( 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 parent, |
|
|
|
|
3::smallint AS ebene |
|
|
|
|
FROM sxc_hochschulen where hs_nr is not null; |
|
|
|
|
]]></sql> |
|
|
|
|
</view> |
|
|
|
|
</views> |
|
|
|
|
|