@ -325,14 +327,9 @@ select 'Hochschulen', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallin
union select bezeichnung, laufnummer::char(10), '0'::char(10) as parent, 1 as ebene from sxc_hsk_hochschultypen
union select bezeichnung, laufnummer::char(10), '0'::char(10) as parent, 1 as ebene from sxc_hsk_hochschultypen
--Element kann sich nicht selbst als parent haben!!
--Element kann sich nicht selbst als parent haben!!
--die Einzelhochschulen
--die Einzelhochschulen
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, 2::smallint as ebene from sxc_hochschulen where
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,
hs_nr is not null and hsk_laufnummer not in (select hsk_laufnummer from sxc_hochschulen_standorte where hauptsitz='1')
2::smallint as ebene from sxc_hochschulen where
union select name, 'ST_'||hs_nr::char(10), (select laufnummer from sxc_hsk_hochschultypen H where H.bezeichnung=sxc_hochschulen.hsk_art)::char(10) as parent, 2::smallint as ebene from sxc_hochschulen where
hs_nr is not null;
hs_nr is not null and hsk_laufnummer in (select hsk_laufnummer from sxc_hochschulen_standorte where hauptsitz='1')
--und die Standorte
union select trim(name)|| ' Standort '||standort_ort, hs_nr::char(10), 'ST_'||hs_nr_hauptsitz as parent, 3::smallint as ebene from sxc_hochschulen_standorte
where hs_nr_hauptsitz is not null and hs_nr is not null;
]]></sql>
]]></sql>
</view>
</view>
<viewname="sxc_hochschulen_bland">
<viewname="sxc_hochschulen_bland">
@ -344,15 +341,8 @@ where hs_nr_hauptsitz is not null and hs_nr is not null;
<sqldbsystem=""><![CDATA[
<sqldbsystem=""><![CDATA[
select 'Hochschulen', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallint as ebene from xdummy
select 'Hochschulen', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallint as ebene from xdummy
union select hsk_bundesland, substring(hsk_bundesland, 1,10), '0'::char(10) as parent, 1 as ebene from sxc_hochschulen
union select hsk_bundesland, substring(hsk_bundesland, 1,10), '0'::char(10) as parent, 1 as ebene from sxc_hochschulen
--Element kann sich nicht selbst als parent haben!!
--die Einzelhochschulen
union select name, hs_nr::char(10), substring(hsk_bundesland, 1,10) as parent, 2::smallint as ebene from sxc_hochschulen where
union select name, hs_nr::char(10), substring(hsk_bundesland, 1,10) as parent, 2::smallint as ebene from sxc_hochschulen where
hs_nr is not null and hsk_laufnummer not in (select hsk_laufnummer from sxc_hochschulen_standorte where hauptsitz='1')
hs_nr is not null ;
union select name, 'ST_'||hs_nr::char(10), substring(hsk_bundesland, 1,10) as parent, 2::smallint as ebene from sxc_hochschulen where
hs_nr is not null and hsk_laufnummer in (select hsk_laufnummer from sxc_hochschulen_standorte where hauptsitz='1')
--und die Standorte
union select trim(name)|| ' Standort '||standort_ort, hs_nr::char(10), 'ST_'||hs_nr_hauptsitz as parent, 3::smallint as ebene from sxc_hochschulen_standorte
where hs_nr_hauptsitz is not null and hs_nr is not null;
]]></sql>
]]></sql>
</view>
</view>
<viewname="sxc_hochschulen_liste">
<viewname="sxc_hochschulen_liste">
@ -365,13 +355,7 @@ where hs_nr_hauptsitz is not null and hs_nr is not null;
select 'Hochschulen', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallint as ebene from xdummy
select 'Hochschulen', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallint as ebene from xdummy
union
union
select name, hs_nr::char(10), '0'::char(10) as parent, 1::smallint as ebene from sxc_hochschulen where
select name, hs_nr::char(10), '0'::char(10) as parent, 1::smallint as ebene from sxc_hochschulen where
hs_nr is not null and hsk_laufnummer not in (select hsk_laufnummer from sxc_hochschulen_standorte where hauptsitz='1')
hs_nr is not null ;
union
select name, 'ST_'||hs_nr::char(10), '0'::char(10) as parent, 1::smallint as ebene from sxc_hochschulen where
hs_nr is not null and hsk_laufnummer in (select hsk_laufnummer from sxc_hochschulen_standorte where hauptsitz='1')
--und die Standorte
union select trim(name)|| ' Standort '||standort_ort, hs_nr::char(10), 'ST_'||hs_nr_hauptsitz as parent, 1::smallint as ebene from sxc_hochschulen_standorte
where hs_nr_hauptsitz is not null and hs_nr is not null;
]]></sql>
]]></sql>
</view>
</view>
<viewname="sxc_hochschulen_nrw_art">
<viewname="sxc_hochschulen_nrw_art">
@ -383,44 +367,25 @@ where hs_nr_hauptsitz is not null and hs_nr is not null;
<sqldbsystem=""><![CDATA[
<sqldbsystem=""><![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', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallint as ebene from xdummy
union select bezeichnung, laufnummer::char(10), '0'::char(10) as parent, 1 as ebene from sxc_hsk_hochschultypen
union select bezeichnung, laufnummer::char(10), '0'::char(10) as parent, 1 as ebene from sxc_hsk_hochschultypen
--Element kann sich nicht selbst als parent haben!!
--die Einzelhochschulen
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,
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,
2::smallint as ebene from sxc_hochschulen where
2::smallint as ebene from sxc_hochschulen where
hs_nr is not null and hsk_laufnummer not in (select hsk_laufnummer from sxc_hochschulen_standorte where hauptsitz='1')
hs_nr is not null
and hsk_bundesland='Nordrhein-Westfalen'
and hsk_bundesland='Nordrhein-Westfalen';
union select name, 'ST_'||hs_nr::char(10), (select laufnummer from sxc_hsk_hochschultypen H where H.bezeichnung=sxc_hochschulen.hsk_art)::char(10) as parent, 2::smallint as ebene from sxc_hochschulen where
hs_nr is not null and hsk_laufnummer in (select hsk_laufnummer from sxc_hochschulen_standorte where hauptsitz='1')
and hsk_bundesland='Nordrhein-Westfalen'
--und die Standorte
union select trim(name)|| ' Standort '||standort_ort, hs_nr::char(10), 'ST_'||hs_nr_hauptsitz as parent, 3::smallint as ebene from sxc_hochschulen_standorte
where hs_nr_hauptsitz is not null and hs_nr is not null
and hs_nr_hauptsitz in (select hs_nr from sxc_hochschulen where hsk_bundesland='Nordrhein-Westfalen')
create view sxc_hochschulen_nrw_liste (druck, apnr, parent, ebene) as
select 'Hochschulen', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallint as ebene from xdummy
select 'Hochschulen', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallint as ebene from xdummy
union
union
select name, hs_nr::char(10), '0'::char(10) as parent, 1::smallint as ebene from sxc_hochschulen where
select name, hs_nr::char(10), '0'::char(10) as parent, 1::smallint as ebene from sxc_hochschulen where
hs_nr is not null and hsk_laufnummer not in (select hsk_laufnummer from sxc_hochschulen_standorte where hauptsitz='1')
hs_nr is not null
and hsk_bundesland='Nordrhein-Westfalen'
and hsk_bundesland='Nordrhein-Westfalen';
union
select name, 'ST_'||hs_nr::char(10), '0'::char(10) as parent, 1::smallint as ebene from sxc_hochschulen where
hs_nr is not null and hsk_laufnummer in (select hsk_laufnummer from sxc_hochschulen_standorte where hauptsitz='1')
and hsk_bundesland='Nordrhein-Westfalen'
--und die Standorte
union select trim(name)|| ' Standort '||standort_ort, hs_nr::char(10), 'ST_'||hs_nr_hauptsitz as parent, 1::smallint as ebene from sxc_hochschulen_standorte
where hs_nr_hauptsitz is not null and hs_nr is not null
and hs_nr_hauptsitz in (select hs_nr from sxc_hochschulen where hsk_bundesland='Nordrhein-Westfalen')
47092^Abschluss^40^0^0^100^200^5^char^30^0^1^<<SQL>> select astat, dtxt from kenn_abschl_astat where struktur_c='Abschluss (amtlich)' order by 2;^^^
47092^Abschluss^40^0^0^100^200^5^char^30^0^1^<<SQL>> select astat, dtxt from kenn_abschl_astat where struktur_c='Abschluss (amtlich)' order by 2;^^^
47093^Hochschulart^15^0^0^170^200^1^integer^30^0^1^<<SQL>> select laufnummer,bezeichnung from sxc_hsk_hochschultypen order by 1^ ^ ^
47093^Hochschulart^15^0^0^170^200^1^integer^30^0^1^<<SQL>> select laufnummer,bezeichnung from sxc_hsk_hochschultypen order by 1^ ^ ^
47094^Stichwort^60^0^0^170^100^1^char^30^0^0^^^ ^
47094^Stichwort^60^0^0^170^100^1^char^30^0^0^^^ ^
47095^Standort^20^0^0^170^100^1^char^30^0^1^<<SQL>> select hs_nr, trim(name) || ' Standort ' || standort_ort from sxc_hochschulen_standorte where 1=1 /* and hs_nr_hauptsitz in <@printkeys Hochschule.allNeededKeysList/> --<<Hochschule>> */ order by 2;^^ ^
47095^Standort^20^0^0^170^100^1^char^30^0^1^<<SQL>> select standort_nr, trim(name) || ' Standort ' || standort_ort from sxc_hochschulen_standorte where 1=1 /* and hs_nr in <@printkeys Hochschule.allNeededKeysList/> --<<Hochschule>> */ order by 2;^^ ^
47096^Trägerschaft^17^0^0^170^200^1^integer^30^0^1^<<SQL>> select laufnummer,bezeichnung from sxc_hsk_traegerschaftstypen order by 1^ ^ ^
47096^Trägerschaft^17^0^0^170^200^1^integer^30^0^1^<<SQL>> select laufnummer,bezeichnung from sxc_hsk_traegerschaftstypen order by 1^ ^ ^
47097^Fächer^30^0^0^100^200^1^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='KENN-Fächer-Sicht' order by sortnr,name;^^^
47097^Fächer^30^0^0^100^200^1^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='KENN-Fächer-Sicht' order by sortnr,name;^^^