|
|
|
@ -214,7 +214,7 @@ select st_studium_nr,
@@ -214,7 +214,7 @@ select st_studium_nr,
|
|
|
|
|
--Nun ist studiengang_nr=1 definiert. Die restlichen werden mit RANK ermittelt: |
|
|
|
|
(case when studiengang_nr is not null then studiengang_nr |
|
|
|
|
else |
|
|
|
|
rank () over (partition by semester, st_studstamm_nr,studiengang_nr order by |
|
|
|
|
dense_rank () over (partition by semester, st_studstamm_nr,studiengang_nr order by |
|
|
|
|
(case when studiengangs_typ_kb='TSG' then st_absz_nr else st_studium_nr end ))+1 |
|
|
|
|
end) |
|
|
|
|
as studiengang_nr, |
|
|
|
|