Browse Source

COSTAGE Bugfix: Primary subject is not first subject #1

COStage_0.2_Release
Daniel Quathamer 3 years ago
parent
commit
20ea3c9149
  1. 6
      src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql

6
src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql

@ -218,7 +218,11 @@ select st_studium_nr,
(case when studiengangs_typ_kb='TSG' then st_absz_nr else st_studium_nr end ))+1 (case when studiengangs_typ_kb='TSG' then st_absz_nr else st_studium_nr end ))+1
end) end)
as studiengang_nr, as studiengang_nr,
fach_nr, (case when primaerflag =1 then 1
else
dense_rank () over (partition by semester, st_studstamm_nr,studiengang_nr
order by fach_nr)+1
end) as fach_nr,
unikey, unikey,
beginn_datum as anfdat, beginn_datum as anfdat,
(case when studienstatustyp not in ('Z','X') then null::date (case when studienstatustyp not in ('Z','X') then null::date

Loading…
Cancel
Save