|
|
@ -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 |
|
|
|