@ -65,6 +65,7 @@ order by CL.sortnr\
<#assign filter="<<Köpfe oder Fälle ?>>\
<#assign filter="<<Köpfe oder Fälle ?>>\
/* and sem_rueck_beur_ein >= <<Seit Semester>> */\
/* and sem_rueck_beur_ein >= <<Seit Semester>> */\
/* and sem_rueck_beur_ein <= <<Bis Semester>> */\
/* and sem_rueck_beur_ein <= <<Bis Semester>> */\
/* and sem_rueck_beur_ein = <<Semester>> */\
/* and stichtag = <<Stichtag>> */\
/* and stichtag = <<Stichtag>> */\
/* and <<Hochschulzugangsberechtigung>> */\
/* and <<Hochschulzugangsberechtigung>> */\
/* and <<Hörerstatus>>*/\
/* and <<Hörerstatus>>*/\
@ -134,6 +135,8 @@ sum(${column.targetfieldname}) as ${column.targetfieldname},\
null::char(1) as dummycol\
null::char(1) as dummycol\
into temp tmp_stud2\
into temp tmp_stud2\
from tmp_stud\
from tmp_stud\
where 1=1\
/* ${<<Zusatzfilter>>} */\
group by\
group by\
<#list 1..groupby as i>${i}\
<#list 1..groupby as i>${i}\
<#if i != groupby>\
<#if i != groupby>\
@ -142,12 +145,8 @@ group by\
</#list>\
</#list>\
;\
;\
\
\
<#assign orderby=0 />\
\
select \
select \
<#foreach column in columns>\
<#foreach column in columns>\
<#if column.is_visible==1>\
<#assign orderby=orderby +1 />\
<#assign format_sql="" />\
<#assign format_sql="" />\
<#if column.format_sql?string != "">\
<#if column.format_sql?string != "">\
<#assign format_sql=column.format_sql />\
<#assign format_sql=column.format_sql />\
@ -159,11 +158,10 @@ select \
${column.targetfieldname}${format_sql}\
${column.targetfieldname}${format_sql}\
</#if>\
</#if>\
<#if column_has_next>,</#if>\
<#if column_has_next>,</#if>\
</#if> --wenn sichtbar\
</#foreach>\
</#foreach>\
from tmp_stud2\
from tmp_stud2\
order by <#list 1..order by as i>${i}\
order by <#list 1..group by as i>${i}\
<#if i != order by>\
<#if i != group by>\
,\
,\
</#if>\
</#if>\
</#list>\
</#list>\
@ -181,9 +179,9 @@ drop table if exists tmp_stud;\
drop_and_delete movable_columns \
drop_and_delete movable_columns \
white_space_color=COLOR_WHITE fixed_columns=1\
white_space_color=COLOR_WHITE fixed_columns=1\
min_heading_height=55\
min_heading_height=55\
<#foreach column in columns><#if column.is_visible==1> \
<#foreach column in columns>\
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\
row_selectable heading_platform readonly\
row_selectable heading_platform readonly\
width=${column.visible_width} text_size=60\
width=${column.visible_width} text_size=60\
</#if></# foreach>\
</#foreach>\
@@@^Studienfach^Anzahl bzw. Anteil^Datenblatt Studierendenstatistik^drop table if exists tmp_stud2; drop table if exists tmp_stud3;^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^
@@@^Studienfach^Anzahl bzw. Anteil^Datenblatt Studierendenstatistik^drop table if exists tmp_stud2; drop table if exists tmp_stud3;^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^