@ -85,6 +85,15 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\
@@ -85,6 +85,15 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\
;\
\
]]></sqlvar>\
<sqlvar name="koepfe_oder_faelle_prep"><![CDATA[\
\
select apnr from koepfe_oder_faelle where 'K_' || tid='<<Köpfe oder Fälle ?>>'\
union\
select content from sx_repository where 'R_' || tid='<<Köpfe oder Fälle ?>>'\
limit 1;\
]]>\
</sqlvar>\
\
</sqlvars>\
\
<#assign jahr_param="" />\
@ -111,8 +120,7 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\
@@ -111,8 +120,7 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\
<#assign semester_filter = semester_filter+ " and 1=1 and sem_rueck_beur_ein = "+endsemester /> \
</#if>\
\
<#if "<<Köpfe oder Fälle ?>>"?contains("KoF_RPTA")>\
@ -122,18 +130,6 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\
@@ -122,18 +130,6 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\
/* and substring('' || sem_rueck_beur_ein from 5 for 1)='<<Semestertyp>>' */\
/* and ${<<Filter Studierende>>} */\
" />\
<#else>\
<#assign filter="<<Köpfe oder Fälle ?>>\
/* and sem_rueck_beur_ein = <<Semester>> */\
/* and stichtag = <<Stichtag>> */\
/* and <<Hochschulzugangsberechtigung>> */\
/* and <<Hörerstatus>>*/\
/* and geschlecht = <<Geschlecht>> */\
/* and fach_sem_zahl <= <<bis Fachsemester>> */\
/* and substring('' || sem_rueck_beur_ein from 5 for 1)='<<Semestertyp>>' */\
/* and ${<<Filter Studierende>>} */\
" />\
</#if>\
\
--die Maske 48000 wird auch im dashboard benutzt.\
--dort gibt es die Spalte kz_rueck_beur_ein nicht im optimierten Resultset, daher:\
@ -82,6 +82,14 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\
@@ -82,6 +82,14 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\
;\
\
]]></sqlvar>\
<sqlvar name="koepfe_oder_faelle_prep"><![CDATA[\
\
select apnr from koepfe_oder_faelle where 'K_' || tid='<<Köpfe oder Fälle ?>>'\
union\
select content from sx_repository where 'R_' || tid='<<Köpfe oder Fälle ?>>'\
limit 1;\
]]>\
</sqlvar>\
</sqlvars>\
\
<#assign jahr_param="" />\
@ -109,30 +117,9 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\
@@ -109,30 +117,9 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\
</#if>\
\
\
<#if "<<Köpfe oder Fälle ?>>"?contains("KoF_RPTA")>\
<#if my_base_rs = "rpta_sos_lab_aggr">\
<#assign filter="${<<Köpfe oder Fälle ?>>}\
/* and sem_der_pruefung = <<Semester>> */\
/* and stichtag = <<Stichtag>> */\
/* and geschlecht = <<Geschlecht>> */\
/* and fach_sem_zahl <= <<bis Fachsemester>> */\
/* and substring('' || sem_der_pruefung from 5 for 1)='<<Semestertyp>>' */\
/* and pstatus=<<Prüfungsstatus>> */\
" />\
<#elseif my_base_rs = "rpta_sos_lab_stg">\
<#assign filter="${<<Köpfe oder Fälle ?>>}\
/* and sem_d_abg_pruefung = <<Semester>> */\
/* and stichtag = <<Stichtag>> */\
/* and geschlecht = <<Geschlecht>> */\
/* and fach_sem_zahl <= <<bis Fachsemester>> */\
/* and substring('' || sem_der_pruefung from 5 for 1)='<<Semestertyp>>' */\
@ -141,7 +128,7 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\
@@ -141,7 +128,7 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\
@ -151,7 +138,6 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\
@@ -151,7 +138,6 @@ and substring('' || tid from 5 for 1)='<<Semestertyp>>'\