Modul SuperX-Connect
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
4.0 KiB

47230^Studierendenströme Hochschulvergleich extern^--Freemarker Template\
<#include "SQL_lingua_franca"/>\
<#include "SuperX_general"/>\
--Autor D. Quathamer 2026\
\
<#assign jahr_filter ="1=1\
/* and A.jahr >= <<Jahr von>> */\
/* and A.jahr <= <<Jahr bis>> */\
" />\
\
\
<#assign filter="1=1" />\
<#assign filter= filter + " and " + jahr_filter />\
\
\
/* <#assign filter = filter + " and A.hs_nr in (<<Hochschule>>) " /> */ \
select \
A.jahr,\
H.name as hochschule,\
A.anfangsbestand,\
A.zugang,\
case when A.anfangsbestand >0 then A.zugang::decimal(15,2) / A.anfangsbestand::decimal(15,2) * 100 else null::decimal(15,2) end as zugang_quote,\
A.zugang_ersteinschr,\
A.abgang,\
A.abgang_hauptpr,\
A.abgang_ohne_hauptpr,\
case when A.anfangsbestand >0 then A.abgang_ohne_hauptpr::decimal(15,2) / A.anfangsbestand::decimal(15,2) * 100 else null::decimal(15,2) end as abgang_ohne_hauptpr_quote,\
A.hauptpr_summe,\
A.hauptpr_bleibt,\
A.endbestand,\
case when A.anfangsbestand >0 then A.endbestand::decimal(15,2) / A.anfangsbestand::decimal(15,2) * 100 else null::decimal(15,2) end as endbestand_quote --,\
--A.datenstand\
from sxc_stud_zugang_abgang_aggr A, sxc_hochschulen H\
where H.hs_nr=A.hs_nr\
and ${filter}\
order by 1,2,3,4,5,6,7,8\
;^XIL List\
sizable_columns horizontal_scrolling\
drop_and_delete movable_columns \
white_space_color=COLOR_WHITE fixed_columns=1\
min_heading_height=55\
Column CID=0 heading_text="Jahr" center_heading explanation="(WS + darauffolgendes SS)"\
row_selectable heading_platform readonly\
width=5 text_size=60\
Column CID=0 heading_text="Hochschule" center_heading explanation=""\
row_selectable heading_platform readonly\
width=10 text_size=60\
Column CID=0 heading_text="Anfangsbestand" center_heading explanation="Studierende im WiSe"\
row_selectable heading_platform readonly\
width=5 text_size=60\
Column CID=0 heading_text="Zugang" center_heading explanation="Studierende (Erst- und Neueinschreiber) im WiSe und SoSe"\
row_selectable heading_platform readonly\
width=5 text_size=60\
Column CID=0 heading_text="Zugang Quote in %" center_heading explanation="Studierende (Ersteinschreiber) im WiSe und SoSe"\
row_selectable heading_platform readonly\
width=5 text_size=60\
Column CID=0 heading_text="Zugang Ersteinschreibung" center_heading explanation="Studierende (Ersteinschreiber) im WiSe und SoSe"\
row_selectable heading_platform readonly\
width=5 text_size=60\
Column CID=0 heading_text="Abgang" center_heading explanation="Exmatrikuliert"\
row_selectable heading_platform readonly\
width=5 text_size=60\
Column CID=0 heading_text="Abgang mit Hauptpruefung" center_heading explanation="Hauptprüfung, im Folgesemester nicht eingeschrieben"\
row_selectable heading_platform readonly\
width=5 text_size=60\
Column CID=0 heading_text="Abgang ohne Hauptpruefung" center_heading explanation="Keine Hauptprüfung, im Folgesemester nicht eingeschrieben"\
row_selectable heading_platform readonly\
width=5 text_size=60\
Column CID=0 heading_text="Abgang ohne Hauptpruefung Quote in %" center_heading explanation="Studierende (Ersteinschreiber) im WiSe und SoSe"\
row_selectable heading_platform readonly\
width=5 text_size=60\
Column CID=0 heading_text="Hauptpruefung gesamt" center_heading explanation="Hauptprüfung"\
row_selectable heading_platform readonly\
width=5 text_size=60\
Column CID=0 heading_text="Hauptpruefung bleibt" center_heading explanation="Hauptprüfung, im Folgesem.- eingeschrieben"\
row_selectable heading_platform readonly\
width=5 text_size=60\
Column CID=0 heading_text="Endbestand" center_heading explanation="Endbestand (Anfangsbestand + Zugang - Abgang)"\
row_selectable heading_platform readonly\
width=5 text_size=60\
Column CID=0 heading_text="Endbestand Quote in %" center_heading explanation="Studierende (Ersteinschreiber) im WiSe und SoSe"\
row_selectable heading_platform readonly\
width=5 text_size=60\
@@@^Studienfach^Anzahl bzw. Anteil^Studierende (Anfangsbestand, Zugang und Abgang) pro Hochschule und Studienjahr^ ^^2^850^540^^1^ ^